From: hickert Date: Tue, 4 Dec 2007 09:59:49 +0000 (+0000) Subject: Added missing col name X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f0abc5c09b7d4eceea61318508d0097c8ab61442;p=gosa.git Added missing col name git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7998 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/conference/class_phoneConferenceGeneric.inc b/plugins/gofon/conference/class_phoneConferenceGeneric.inc index e8f436de4..e0364dc54 100644 --- a/plugins/gofon/conference/class_phoneConferenceGeneric.inc +++ b/plugins/gofon/conference/class_phoneConferenceGeneric.inc @@ -454,7 +454,7 @@ class conference extends plugin * We must remove those entries to avoid duplicate use of the same extension name. */ if($this->goFonHomeServer != $this->init_HomeServer){ - $query = "SELECT id FROM ".$cfg_Current['EXT_TABLE']." WHERE exten='".$this->telephoneNumber."' OR '".$this->cn."';"; + $query = "SELECT id FROM ".$cfg_Current['EXT_TABLE']." WHERE exten='".$this->telephoneNumber."' OR exten='".$this->cn."';"; $res = @mysql_query($query,$res_cur); @DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$query, "Database query"); if(!$res){ @@ -587,7 +587,7 @@ class conference extends plugin $db_init = @mysql_select_db($cfg_Init['DB'],$r_init); /* Check if there is an old entry */ - $query = "SELECT id FROM ".$cfg_Init['EXT_TABLE']." WHERE exten='".$this->old_tele_number."' OR '".$this->old_cn."';"; + $query = "SELECT id FROM ".$cfg_Init['EXT_TABLE']." WHERE exten='".$this->old_tele_number."' OR exten='".$this->old_cn."';"; $res = @mysql_query($query,$r_init); @DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$query, "Database query"); if(!$res){