# HG changeset patch # User Dan # Date 1251344257 14400 # Node ID 512951548faa46dabdd8e2e1efe3659c76722384 # Parent 3afbd6374442e127691a8fb68fd9349cdf3a783c More PHP warnings squashed. diff -r 3afbd6374442 -r 512951548faa plugins/gallery/browser.php --- a/plugins/gallery/browser.php Wed Aug 26 23:21:56 2009 -0400 +++ b/plugins/gallery/browser.php Wed Aug 26 23:37:37 2009 -0400 @@ -41,7 +41,7 @@ * @access private */ - function render($column_crap, $row, $row_crap) + function render($column_crap, $row, $row_crap = false) { global $db, $session, $paths, $template, $plugins; // Common objects diff -r 3afbd6374442 -r 512951548faa plugins/gallery/functions.php --- a/plugins/gallery/functions.php Wed Aug 26 23:21:56 2009 -0400 +++ b/plugins/gallery/functions.php Wed Aug 26 23:37:37 2009 -0400 @@ -102,7 +102,7 @@ if ( $db->numrows() < 1 ) { - return array(); + return array('_id' => 'NULL'); } $lookup_table = array(); diff -r 3afbd6374442 -r 512951548faa plugins/gallery/viewimage.php --- a/plugins/gallery/viewimage.php Wed Aug 26 23:21:56 2009 -0400 +++ b/plugins/gallery/viewimage.php Wed Aug 26 23:37:37 2009 -0400 @@ -516,7 +516,7 @@ } } - function error_404($userpage = false) + function error_404() { echo '

There is no image in the gallery with this ID.

'; echo '

You have requested an image that couldn\'t be looked up. Please check the URL and try again, or visit the Gallery index.

';