From: Ian Baker Date: Mon, 15 Aug 2011 18:17:51 +0000 (+0000) Subject: cleaned up database query, doesn't have to be aware of column names anymore (thanks... X-Git-Tag: 1.31.0-rc.0~28256 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=6b292f78041e2ef8baba23225e43e39493bf96f0;p=lhc%2Fweb%2Fwiklou.git cleaned up database query, doesn't have to be aware of column names anymore (thanks Catrope!) followup to r92009 --- diff --git a/includes/upload/UploadStash.php b/includes/upload/UploadStash.php index af02fb21f9..1156f47524 100644 --- a/includes/upload/UploadStash.php +++ b/includes/upload/UploadStash.php @@ -485,22 +485,7 @@ class UploadStash { return false; } - $this->fileMetadata[$key] = array( - 'us_user' => $row->us_user, - 'us_key' => $row->us_key, - 'us_orig_path' => $row->us_orig_path, - 'us_path' => $row->us_path, - 'us_size' => $row->us_size, - 'us_sha1' => $row->us_sha1, - 'us_mime' => $row->us_mime, - 'us_media_type' => $row->us_media_type, - 'us_image_width' => $row->us_image_width, - 'us_image_height' => $row->us_image_height, - 'us_image_bits' => $row->us_image_bits, - 'us_source_type' => $row->us_source_type, - 'us_timestamp' => $row->us_timestamp, - 'us_status' => $row->us_status - ); + $this->fileMetadata[$key] = (array)$row; return true; }