Use fetch_object

This commit is contained in:
Tobias Reich 2014-08-22 22:34:59 +02:00
parent 11e8b8b2e6
commit 47e3219966

View File

@ -225,12 +225,12 @@ class Photo extends Module {
if ($result->num_rows===1) {
$result = $result->fetch_assoc();
$result = $result->fetch_object();
$return = array(
'photo_name' => $result['url'],
'path' => LYCHEE_UPLOADS_BIG . $result['url'],
'path_thumb' => $result['thumbUrl'],
'photo_name' => $result->url,
'path' => LYCHEE_UPLOADS_BIG . $result->url,
'path_thumb' => $result->thumbUrl
);
return $return;