6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/22/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#12262] problem in _getAttribute() of /usr/share/php/Horde/ActiveSync/Message/Base.php
*
Your Email Address
*
Spam protection
Enter the letters below:
._.. .. ,.__ . . | \ / \./ [__)|\/| _|_ \/ | | | |
Comment
>> I have problems with GUI - ActiveSync - Lightning, >> >> in the log I have: >> >> [kronolith] PHP ERROR: Undefined index: body [pid 30676 on line 497 >> of "/usr/share/php/Horde/ActiveSync/Message/Base.php"] >> >> I have added a log message there with: >> >> if(empty($this->_properties[$name])) { // SKA >> Horde::logMessage('SKA: property "'.$name.'" not set', 'WARN'); >> return $default; >> } > > An empty value for $this->_properties[$name] is perfectly valid here > - the default value for most attributes is false, so empty() will > return true. Instead, what you want to do is check if the > array_key_exists() there. > > Regardless, I would need a backtrace to see where _getAttributes() is > being called from, as it should only be asking for properties that > are known to exist in a given EAS version.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers