Closed (fixed)
Project:
Notifications
Version:
5.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 May 2008 at 11:53 UTC
Updated:
24 Jun 2008 at 15:02 UTC
The logic of the patch submitted here #224359: Fatal error: Call to undefined function: array_diff_key() needs to be applied to notifications_ui.module if you are using PHP4.
Basically, add the following function to this module:
if (!function_exists('array_diff_key')) {
function array_diff_key() {
$arrs = func_get_args();
$result = array_shift($arrs);
foreach ($arrs as $array) {
foreach ($result as $key => $v) {
if (array_key_exists($key, $array)) {
unset($result[$key]);
}
}
}
return $result;
}
}
Comments
Comment #1
jose reyero commentedThanks
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.