From 16444c08918e28c223014d726606c4645b014045 Mon Sep 17 00:00:00 2001 From: shish Date: Wed, 16 May 2007 23:50:51 +0000 Subject: [PATCH] mysql 4.0.X compatability git-svn-id: file:///home/shish/svn/shimmie2/trunk@103 7f39781d-f577-437e-ae19-be835c7a54ca --- core/database.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/database.class.php b/core/database.class.php index 3119323d..16bca0ad 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -243,7 +243,7 @@ class Database { } // }}} // users {{{ - var $SELECT_USER = "SELECT *,time_to_sec(timediff(now(), joindate))/(60*60*24) AS days_old FROM users "; + var $SELECT_USER = "SELECT *,(unix_timestamp(now()) - unix_timestamp(joindate))/(60*60*24) AS days_old FROM users "; public function get_user($a=false, $b=false) { if($b == false) {