The new "last_used" column is populated by the value of the PHP global $_SERVER['REQUEST_TIME']. But unfortunately this key is not present on all webservers in the $_SERVER global array (at least it's not on my blog's hosting server which is an Apache 1.3.34 and PHP v4.4.4). Please, use the return value of the time() PHP function instead. Thanks.

Comments

Dave Reid’s picture

Status: Active » Fixed

Thanks very much for the bug report! I forget about PHP4 sometimes (*grumbles*) since I do so much dev on PHP 5 and Drupal 7.x, which requires 5.2. I have replaced all the instances of $_SERVER['REQUEST_TIME'] with time().

müzso’s picture

Thanks for the quick fix. It seems I was mistaken too. I thought that all REQUEST_* variables in the $_SERVER global come from the webserver. Now I see in the PHP docs that $_SERVER['REQUEST_TIME'] is something "new" that is provided solely by PHP (and came with PHP v5.1.0).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.