Summary | PHP ERROR: max(): When only one parameter is given, it must be an array |
Queue | Ingo |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | jan (at) horde (dot) org |
Requester | vilius (at) lnk (dot) lt |
Created | 04/03/2011 (5210 days ago) |
Due | |
Updated | 04/04/2011 (5209 days ago) |
Assigned | 04/03/2011 (5210 days ago) |
Resolved | 04/04/2011 (5209 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | Yes |
State ⇒ Resolved
Re-add lost is_array() checks (
Bug #9786).20 files changed, 62 insertions(+), 30 deletions(-)
http://git.horde.org/horde-git/-/commit/cdbf3cb139b5b5508b51316852176c2fbbe23546
Don't cast to boolean, this can be arbitrary values (
Bug #9786).1 files changed, 2 insertions(+), 2 deletions(-)
http://git.horde.org/horde-git/-/commit/1a8de0cc3622a84abc41ce71406cba74ebf6644b
Ingo_Application::hasPermission()? It seems to be a boolean but AFAICS
it could only be false, and this case is catched earlier.
only one parameter is given, it must be an array [pid 19042 on line
153 of "/var/www/html/horde/ingo/lib/Application.php"]
2011-04-03T17:02:28+03:00 DE
BUG: 1. require()/var/www/html/horde/ingo/index.php:13
2. Horde_Core_Perms->hasAppPermission()
/var/www/html/horde/ingo/filters.php:265
3. Horde_Registry->callAppMethod() /usr/share/pear/Horde/Core/Perms.php:284
4. call_user_func_array() /usr/share/pear/Horde/Registry.php:1059
5. Ingo_Application->hasPermission()
6. max() /var/www/html/horde/ingo/lib/Application.php:153
7. Horde::errorHandler()
2011-04-03T17:02:28+03:00 WARN: HORDE [ingo] PHP ERROR: array_filter()
expects parameter 1 to be array, boolean given [pid 19042 on line 149
of "/var/www/html/horde/ingo/lib/Application.php"]
2011-04-03T17:02:28+03:00 DE
BUG: 1. require()/var/www/html/horde/ingo/index.php:13
2. Horde_Core_Perms->hasAppPermission()
/var/www/html/horde/ingo/filters.php:320
3. Horde_Registry->callAppMethod() /usr/share/pear/Horde/Core/Perms.php:284
4. call_user_func_array() /usr/share/pear/Horde/Registry.php:1059
5. Ingo_Application->hasPermission()
6. array_filter() /var/www/html/horde/ingo/lib/Application.php:149
7. Horde::errorHandler()
State ⇒ Feedback
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ PHP ERROR: max(): When only one parameter is given, it must be an array
Queue ⇒ Ingo
Milestone ⇒
Patch ⇒ Yes
New Attachment: max.patch
State ⇒ Unconfirmed
applications throughs:
PHP ERROR: max(): When only one parameter is given, it must be an array
and do not allow any actions to be performed. I'm not sure if my patch
fixes it correctly but at least Ingo works.