fixed problem with php4.3.2 (negative integer as index)

This commit is contained in:
Ralf Becker 2006-09-10 06:40:56 +00:00
parent c57dadd8f7
commit 4e884eda9a

View File

@ -368,7 +368,7 @@ class uicontacts extends bocontacts
break; break;
default: // move to an other addressbook default: // move to an other addressbook
if (!is_numeric($action) || !($this->grants[(int) $action] & EGW_ACL_EDIT)) // might be ADD in the future if (!is_numeric($action) || !($this->grants[(string) (int) $action] & EGW_ACL_EDIT)) // might be ADD in the future
{ {
return false; return false;
} }