I cannot determine why this will not work for me in hook_menu:
...
'access callback' => 'user_access',
'access arguments' => array('perm1', 'perm2'),
...
Also, these permissions have been declared in hook_perm. I tried clearing cache, etc.
If I use just Array('perm1') it works fine.
"Not work" means I get errors after re-loading the module with the multiple permissions set. From the modules window upon re-loading:
--------
* warning: array_fill() [function.array-fill]: Number of elements must be positive in G:\WampServer\www\site\includes\database.inc on line 241.
* warning: implode() [function.implode]: Invalid arguments passed in G:\WampServer\www\site\includes\database.inc on line 241.
* warning: array_keys() [function.array-keys]: The first argument should be an array in G:\WampServer\www\site\modules\user\user.module on line 502.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT p.perm FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in G:\WampServer\www\site\modules\user\user.module on line 502.
--------