bug fix for c_id thing; sometimes they arent provided (why?)

This commit is contained in:
Thomas Lackner 2013-01-08 13:06:17 -06:00
parent 8c650c564c
commit 3c78159bb3

View file

@ -30,7 +30,6 @@
} }
foreach ($result['snaps'] as $snap) { foreach ($result['snaps'] as $snap) {
var_dump($snap['st']);
if ($snap['st'] == SnapHax::STATUS_NEW) { if ($snap['st'] == SnapHax::STATUS_NEW) {
echo "fetching $snap[id]\n"; echo "fetching $snap[id]\n";
$blob_data = $s->fetch($snap['id']); $blob_data = $s->fetch($snap['id']);
@ -39,7 +38,7 @@
$ext = '.jpg'; $ext = '.jpg';
else else
$ext = '.mp4'; $ext = '.mp4';
file_put_contents($snap['c_id'].$ext, $blob_data); file_put_contents($snap['sn'].$snap['id'].$ext, $blob_data);
} }
} }
} }