Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
Fixes #186
Browse files Browse the repository at this point in the history
  • Loading branch information
mgp25 committed Sep 7, 2015
1 parent 42926be commit 1366a4b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/snapchat.php
Original file line number Diff line number Diff line change
Expand Up @@ -1913,9 +1913,11 @@ function writeToFile($path, $data)
{
$newFile = $path . $ext;
rename($path, $newFile);
}

return $newFile;
return $newFile
}
else
return false;
}

/**
Expand Down Expand Up @@ -2647,7 +2649,8 @@ public function getStory($media_id, $key, $iv, $from, $timestamp, $save = FALSE,
if(!file_exists($file))
{
$newFile = $this->writeToFile($file, $value);
$files[] = $newFile;
if($newFile)
$files[] = $newFile;
}
}
$output = array();
Expand Down

0 comments on commit 1366a4b

Please sign in to comment.