forked from Cavemanon/cavepaintings
safety wrapper for db->GetAll
git-svn-id: file:///home/shish/svn/shimmie2/trunk@690 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
@ -137,7 +137,7 @@ class report_image extends Extension {
|
||||
public function get_reported_images() {
|
||||
// FIXME: many
|
||||
global $database;
|
||||
$reportedimages = $database->db->GetAll("SELECT * FROM ReportImage");
|
||||
$reportedimages = $database->get_all("SELECT * FROM ReportImage");
|
||||
if($reportedimages) {return $reportedimages;}
|
||||
else {return array();}
|
||||
}
|
||||
|
Reference in New Issue
Block a user