From 3c78159bb3de8fb300e2b00b9c7fc75959e20f54 Mon Sep 17 00:00:00 2001 From: Thomas Lackner Date: Tue, 8 Jan 2013 13:06:17 -0600 Subject: [PATCH] bug fix for c_id thing; sometimes they arent provided (why?) --- examples/fetch_all_new_photos.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/fetch_all_new_photos.php b/examples/fetch_all_new_photos.php index 1924326..8b2241c 100644 --- a/examples/fetch_all_new_photos.php +++ b/examples/fetch_all_new_photos.php @@ -30,7 +30,6 @@ } foreach ($result['snaps'] as $snap) { - var_dump($snap['st']); if ($snap['st'] == SnapHax::STATUS_NEW) { echo "fetching $snap[id]\n"; $blob_data = $s->fetch($snap['id']); @@ -39,7 +38,7 @@ $ext = '.jpg'; else $ext = '.mp4'; - file_put_contents($snap['c_id'].$ext, $blob_data); + file_put_contents($snap['sn'].$snap['id'].$ext, $blob_data); } } }