diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc
index 35ce992f681f52ddfc5254537a5362d7eb20265c..e6d3272c77192ae3ff6803b724fdc33a24084ade 100644 (file)
$this->readonly = TRUE;
/* Get blocklist type and defined numbers */
- if (in_array("goFaxSBlock",$this->attrs['objectClass'])){
+ if (in_array_strict("goFaxSBlock",$this->attrs['objectClass'])){
if(isset($this->attrs["goFaxSBlocklist"])){
for ($i= 0; $i<$this->attrs["goFaxSBlocklist"]["count"]; $i++){
$this->goFaxBlocklist[]= $this->attrs["goFaxSBlocklist"][$i];
}
}
$this->type= BLOCK_LIST_SEND;
- } elseif (in_array("goFaxRBlock",$this->attrs['objectClass'])){
+ } elseif (in_array_strict("goFaxRBlock",$this->attrs['objectClass'])){
if(isset($this->attrs["goFaxRBlocklist"])){
for ($i= 0; $i<$this->attrs["goFaxRBlocklist"]["count"]; $i++){
$this->goFaxBlocklist[]= $this->attrs["goFaxRBlocklist"][$i];
$tmp = $this->attributes;
$tmp[] = "type";
foreach($tmp as $attr){
- if(in_array($attr,array("cn","type")) && $this->readonly){
+ if(in_array_strict($attr,array("cn","type")) && $this->readonly){
continue;
}elseif(isset($_POST[$attr]) && $this->acl_is_writeable($attr)){
$this->$attr = $_POST[$attr];
/* Add number */
function addNumber($number)
{
- if (!in_array($number, $this->goFaxBlocklist)){
+ if (!in_array_strict($number, $this->goFaxBlocklist)){
$this->goFaxBlocklist[]= $number;
sort($this->goFaxBlocklist);
}
{
$tmp= array();
foreach ($this->goFaxBlocklist as $val){
- if (!in_array($val, $numbers)){
+ if (!in_array_strict($val, $numbers)){
$tmp[]= $val;
}
}
$this->readonly = TRUE;
/* Get blocklist type and defined numbers */
- if (in_array("goFaxSBlock",$source['objectClass'])){
+ if (in_array_strict("goFaxSBlock",$source['objectClass'])){
if(isset($source["goFaxSBlocklist"])){
for ($i= 0; $i<$source["goFaxSBlocklist"]["count"]; $i++){
$this->goFaxBlocklist[]= $source["goFaxSBlocklist"][$i];
}
}
$this->type= BLOCK_LIST_SEND;
- } elseif (in_array("goFaxRBlock",$source['objectClass'])){
+ } elseif (in_array_strict("goFaxRBlock",$source['objectClass'])){
if(isset($source["goFaxRBlocklist"])){
for ($i= 0; $i<$source["goFaxRBlocklist"]["count"]; $i++){
$this->goFaxBlocklist[]= $source["goFaxRBlocklist"][$i];