summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5deeb64)
raw | patch | inline | side by side (parent: 5deeb64)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 6 Apr 2010 07:54:26 +0000 (07:54 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 6 Apr 2010 07:54:26 +0000 (07:54 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17476 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc | patch | blob | history |
diff --git a/gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc b/gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc
index 817b7aeadb9b554e10e286768bcc5981fd51fd8a..012894b15ecb38fcf08926bfd28601dfdf5d2b65 100644 (file)
@DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$query, "Database query");
if(!$res){
new log("debug","gofonmacro/".get_class($this),"",array(),@mysql_error($r_current));
+ @DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,"<b>".$query."</b>", "ERROR");
return ( msgPool::dbquery("GOfon",@mysql_error($r_current),$Server['SERVER']));
}
@mysql_close($r_current);
*/
$tmp = explode(",", $s_linestr,3);
+ // No priority given ... somehow
+ if(count($tmp) == 2){
+ $tmp = array($tmp[0],"1",$tmp[1]);
+ }
+
/* Check if there is an application given */
- if(empty($tmp[1])){
+ if($tmp[2] == ""){
return(sprintf(_("Application missing in line %s!"),$i_linenum));
}
+ if($tmp[1] == ""){
+ return(sprintf(_("Priority missing in line %s!"),$i_linenum));
+ }
/* Check if there is an extension given */
- if(empty($tmp[0])){
+ if($tmp[0] == ""){
return(sprintf(_("Extension missing in line %s!"),$i_linenum));
}
@DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$query, "Database query");
if(!$res){
new log("debug","gofonmacro/".get_class($this),"",array(),@mysql_error($r_con));
+ @DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,"<b>".$query."</b>", "ERROR");
}
@mysql_close($r_con);
}