diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 646c8fa507..f537ef1ad2 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2013-01-15 Juan Manuel Ramon + + * include/db/postgresql.php + include/db/mysql.php + include/db/oracle.php: Fixed function get_system_time when + timesource is system. + 2013-01-14 Sergio Martin * pandoradb.sql diff --git a/pandora_console/include/db/mysql.php b/pandora_console/include/db/mysql.php index 6aea2b1000..8f0f57266d 100644 --- a/pandora_console/include/db/mysql.php +++ b/pandora_console/include/db/mysql.php @@ -987,7 +987,7 @@ function mysql_get_system_time() { if ($time != 0) return $time; - if ($config["timesource"] = "sql") { + if ($config["timesource"] == "sql") { $time = db_get_sql ("SELECT UNIX_TIMESTAMP();"); if (empty ($time)) { return time (); diff --git a/pandora_console/include/db/oracle.php b/pandora_console/include/db/oracle.php index edcd0e770e..6f2a7958e4 100644 --- a/pandora_console/include/db/oracle.php +++ b/pandora_console/include/db/oracle.php @@ -1342,7 +1342,7 @@ function oracle_get_system_time() { if ($time != 0) return $time; - if ($config["timesource"] = "sql") { + if ($config["timesource"] == "sql") { $time = db_get_sql ("SELECT ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) as dt FROM dual"); if (empty ($time)) { return time (); diff --git a/pandora_console/include/db/postgresql.php b/pandora_console/include/db/postgresql.php index 8460891915..12cf250f49 100644 --- a/pandora_console/include/db/postgresql.php +++ b/pandora_console/include/db/postgresql.php @@ -1021,7 +1021,7 @@ function postgresql_get_system_time() { if ($time != 0) return $time; - if ($config["timesource"] = "sql") { + if ($config["timesource"] == "sql") { $time = db_get_sql ("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP));"); if (empty ($time)) { return time ();