Code

avoiding undefined index error in fax_report
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 May 2005 13:28:48 +0000 (13:28 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 May 2005 13:28:48 +0000 (13:28 +0000)
All changes are signed with #! hickert or # hickert

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@292 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofax/reports/class_faxreport.inc

index 3b572030a32c79a01d4839de034fc07309abc750..921a4feb881fdced898a0d444fe12490ef0feaf3 100644 (file)
@@ -285,8 +285,13 @@ class faxreport extends plugin
        if (isset($fax_users) && count($fax_users)){
                $smarty->assign("search_result", $output);
                $smarty->assign("range_selector", range_selector(count($this->report_list), $this->start, 20));
+       }else{
+       #! hickert // avoiding PHP error "Undefined index: search_result"
+               $smarty->assign("search_result", "");
        }
 
+       
+
        /* Show main page */
         $smarty->assign("plug", validate($_GET['plug']));
        $smarty->assign("launchimage", get_template_path('images/launch.png'));