From: hickert Date: Fri, 20 May 2005 13:28:48 +0000 (+0000) Subject: avoiding undefined index error in fax_report X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ee64a9687f589ea27aac7e7b8744b2bd4a02cef1;p=gosa.git avoiding undefined index error in fax_report All changes are signed with #! hickert or # hickert git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@292 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofax/reports/class_faxreport.inc b/plugins/gofax/reports/class_faxreport.inc index 3b572030a..921a4feb8 100644 --- a/plugins/gofax/reports/class_faxreport.inc +++ b/plugins/gofax/reports/class_faxreport.inc @@ -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'));