summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3772d3b)
raw | patch | inline | side by side (parent: 3772d3b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 1 Dec 2005 13:38:22 +0000 (13:38 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 1 Dec 2005 13:38:22 +0000 (13:38 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2189 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofax/faxreports/class_faxreport.inc | patch | blob | history |
diff --git a/plugins/gofax/faxreports/class_faxreport.inc b/plugins/gofax/faxreports/class_faxreport.inc
index 9d1adcf071e4c26595257295a5ed35297a5729ae..b6398dcdd8f4cc04014ecb82dd6c95d62c65ccdc 100644 (file)
print_red(_("Can't connect to fax database, no reports can be shown!"));
return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
}
- if (! @mysql_select_db("gofax")){
+ if (! @mysql_select_db("gofaxd")){
print_red(_("Can't select fax database for report generation!"));
return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
}
$link = @mysql_pconnect($cfg['SERVER'], $cfg['LOGIN'], $cfg['PASSWORD']);
if ($link === FALSE){
print_red(_("Can't connect to fax database, no reports can be shown!"));
- return;
+ return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
}
if (! @mysql_select_db("gofax")){
print_red(_("Can't select fax database for report generation!"));
- return;
+ return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
}
@DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,
$result = @mysql_query($query);
if ($result === false){
print_red(_("Query for fax database failed!"));
- return;
+ return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
}
$line = mysql_fetch_array($result, MYSQL_ASSOC);
if(!is_callable("mysql_connect")){
print_red("There is no mysql extension configured in your php setup.");
- return;
+ return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
}
/* Connecting, selecting database */
$link = @mysql_pconnect($cfg['SERVER'], $cfg['LOGIN'], $cfg['PASSWORD']);
if ($link === FALSE){
print_red(_("Can't connect to fax database, no reports can be shown!"));
- return;
+ return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
}
if (! @mysql_select_db("gofax")){
print_red(_("Can't select fax database for report generation!"));
- return;
+ return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
}
@DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,
$result = @mysql_query($query);
if ($result === false){
print_red(_("Query for fax database failed!"));
- return;
+ return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
}
$report_list= array();