mysql 4.0.X compatability
git-svn-id: file:///home/shish/svn/shimmie2/trunk@103 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
ec8b66e9c4
commit
16444c0891
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue