Summary | mnemo renders php error if $GLOBALS['display_notepads'] is not defined |
Queue | Mnemo |
Queue Version | 2.2-RC1 |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | |
Requester | m.gabriel (at) das-netzwerkteam (dot) de |
Created | 12/24/2007 (6376 days ago) |
Due | |
Updated | 12/26/2007 (6374 days ago) |
Assigned | 12/25/2007 (6375 days ago) |
Resolved | 12/26/2007 (6374 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
some reason mnemo had a kronolith prefs.php file.
i guess, then this can be considered as a "rejected ticket".
greets,
mike
State ⇒ Feedback
Assigned to
display_notepads preference was corrupted, or if you didn't have an up
to date prefs.php config file. Do you know what the cause was in your
case?
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ mnemo renders php error if $GLOBALS['display_notepads'] is not defined
Queue ⇒ Mnemo
State ⇒ Unconfirmed
the patch below silenced this php5 error if
$GLOBALS['display_notepads'] is undefined...
Warning: Invalid argument supplied for foreach() in
/usr/local/share/_horde-versions_/horde-webmail-1.1-rc1-netzwerkteam/mnemo/lib/Mnemo.php on line
403
diff -r horde-webmail-1.1-rc1/mnemo/lib/Mnemo.php
horde-webmail-1.1-rc1-netzwerkteam/mnemo/lib/Mnemo.php
402,406c402,408
< foreach ($_temp as $id) {
< if (isset($_all[$id])) {
< $GLOBALS['display_notepads'][] = $id;
< }
< }
---
foreach ($_temp as $id) {
if (isset($_all[$id])) {
$GLOBALS['display_notepads'][] = $id;
}
}
}