6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/6/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#13277] Undefined index: devId [pid on line 974 of "/usr/share/php/Horde/ActiveSync/State/Sql.php"]
*
Your Email Address
*
Spam protection
Enter the letters below:
.___.___..___.___. [__ _/ [__ [__ | [___./__.| [___|___
Comment
> These PHP-Errors are generated, if you call > > $GLOBALS['injector']->getInstance('Horde_ActiveSyncState') > ->removeState(array('user' => $user)); > > > HORDE: [horde] PHP ERROR: Undefined index: devId [pid 22012 on line > 974 of "/usr/share/php/Horde/ActiveSync/State/Sql.php"] > HORDE: [horde] PHP ERROR: Undefined index: devId [pid 22012 on line > 976 of "/usr/share/php/Horde/ActiveSync/State/Sql.php"] > > line 970: > } elseif (!empty($user_query) && empty($options['devId'])) { > // If there was a user_deletion, check if we should > remove the > // device entry as well > $sql = 'SELECT COUNT(*) FROM ' . > $this->_syncUsersTable . ' WHERE device_id = ?'; > if (!$this->_db->selectValue($sql, > array($options['devId']))) { > > if $options['devId'] in line 970 is empty, line 974 makes no sense. > > If I understand the comment correctly, Shouldn't this piece of code > remove all devices that had a relation in > horde_activesync_device_users, but became orphan now? > I mean: device_ids removed from horde_activesync_device_users, but > have no other associated user in that table left. -> Orphaned devices > so to say. >
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