[rt-devel] HeadsUp
darren chamberlain
darren at boston.com
Tue Nov 5 10:29:01 EST 2002
* Alek Cesarz <acesarz at crowley.pl> [2002-11-04 22:08]:
> please discard this if not using HeadsUp, because it's not strictly
> related to "core" RT.
No! I refuse! :)
> i've been using HeadsUp sripts for quite some time, but after moving
> to new machine and upgrade to 2.0.15 it crashes with error like this:
>
> System error
> error: Can't call method "CreatedObj" on an undefined value at
> /var/rt2/WebRT/html/HeadsUp/SummaryByAge line 28.
> context:
> ...
> 24:
> 25: if ($new->Count) {
> 26:
> 27: $oldest = $new->First;
I'd modify this like to read something like:
$oldest = $new->First || last;
> 28: $oldest_in_sec = (time - $oldest->CreatedObj->Unix());
>
> 29:
> 30: $new->GotoItem(($new->Count-1));
> 31: $newest = $new->Next;
> 32: $newest_in_sec = (time - $newest->CreatedObj->Unix());
> ...
> code stack: /var/rt2/WebRT/html/HeadsUp/SummaryByAge:28
> /var/rt2/WebRT/html/HeadsUp/index.html:7
> /var/rt2/WebRT/html/autohandler:58
This will solve the symptom, but leaves the question of why the problem
is happening in the first place...
(darren)
--
Deviancy depends on how you define the norm.
More information about the Rt-devel
mailing list