change to phpversion()

This commit is contained in:
Miles Lott 2001-04-21 12:39:30 +00:00
parent f79ab9c194
commit 9bf8708b25
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@
$this->db->query("delete from phpgw_preferences where preference_owner='" . $this->account_id
. "'",__LINE__,__FILE__);
if ($PHP_VERSION < "4.0.0")
if (phpversion() < "4.0.0")
{
$pref_info = addslashes(serialize($this->data));
}

View File

@ -12,7 +12,7 @@
/* $Id$ */
// Delete all records for a user
if (floor($PHP_VERSION ) == 4)
if (floor(phpversion()) == 4)
{
global $phpgw, $account_id;
}