fix a php warning about "Undefined variable: subject"
authorioguix <ioguix>
Mon, 11 Feb 2008 21:28:36 +0000 (21:28 +0000)
committerioguix <ioguix>
Mon, 11 Feb 2008 21:28:36 +0000 (21:28 +0000)
display.php

index 21422190397eded5be66450039f91e11ae628a5d..b1ae784c8eea34cb041fec2f8ddc370f3da0bafc 100644 (file)
@@ -9,7 +9,7 @@
         * @param $return_desc The return link name
         * @param $page The current page
         *
-        * $Id: display.php,v 1.66 2008/01/09 00:19:10 ioguix Exp $
+        * $Id: display.php,v 1.67 2008/02/11 21:28:36 ioguix Exp $
         */
 
        // Prevent timeouts on large exports (non-safe mode only)
                        $subject = $_REQUEST['subject'];
                        if (isset($_REQUEST[$subject])) $object = $_REQUEST[$subject];
                }
+               else {
+                       $subject = '';
+               }
        
                $misc->printTrail(isset($subject) ? $subject : 'database');
                
                // Create report
                if (isset($_REQUEST['query']) && ($subject !== 'report') && $conf['show_reports'] && isset($rs) && is_object($rs) && $rs->recordCount() > 0)
                        echo "\t<li><a href=\"reports.php?{$misc->href}&amp;action=create&amp;report_sql=",
-                               urlencode($_REQUEST['query']), "\">{$lang['strcreatereport']}</a></li>\n";
+                               urlencode($_REQUEST['query']), "&amp;paginate=", urlencode($_REQUEST['paginate']), "\">{$lang['strcreatereport']}</a></li>\n";
 
                // Create view and download
                if (isset($_REQUEST['query']) && isset($rs) && is_object($rs) && $rs->recordCount() > 0) {