From ee64a9687f589ea27aac7e7b8744b2bd4a02cef1 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 20 May 2005 13:28:48 +0000 Subject: [PATCH] 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 --- plugins/gofax/reports/class_faxreport.inc | 5 +++++ 1 file changed, 5 insertions(+) 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')); -- 2.30.2