More PHP warnings squashed.
--- 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
--- 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();
--- 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 '<h3>There is no image in the gallery with this ID.</h3>';
echo '<p>You have requested an image that couldn\'t be looked up. Please check the URL and try again, or visit the <a href="' . makeUrlNS('Special', 'Gallery') . '">Gallery index</a>.</p>';