6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/12/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#13455] [kronolith] PHP ERROR: Undefined offset: 1 [pid 8052 on line 169 of "/usr/share/php/Horde/Timezone/Zone.php"]
*
Your Email Address
*
Spam protection
Enter the letters below:
. ..__ . ,. ..__ |\ |[__) \./ | || \ | \|[__) | |/\||__/
Comment
> I'm getting this error quite often from > > $this->_info[$line] = array( > 0 => '-0:36:32', > 1 => '-', > 2 => 'LMT', > 3 => '1912', > 4 => 'Jan', > 5 => '1', > 6 => '', > ) > > In line 140 of Horde/Timezone/Zone.php $date[3] == '', therefore line > 141 matches nothing. > > $time = isset($date[3]) && $date[3] != '-' ? $date[3] : 0; > > Dunno if the data in the array makes any sense at all, but how about > to change: > > $time = isset($date[3]) && $date[3] != '-' ? $date[3] : 0; > preg_match('/(\d+)(?::(\d+))?(?::(\d+))?(w|s|u)?/', $time, $match); > if (!isset($match[2])) { > > into > > ! $time = isset($date[3])? $date[3] : 0; > preg_match('/(\d+)(?::(\d+))?(?::(\d+))?(w|s|u)?/', $time, $match); > + if (!isset($match[1])) { > + $match[1] = 0; > + } > if (!isset($match[2])) { >
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