Skip to content
Snippets Groups Projects
Commit 8eb3d26e authored by Peter Rotich's avatar Peter Rotich
Browse files

Fix column name typo

parent 22f2acdc
Branches
Tags
No related merge requests found
...@@ -29,12 +29,12 @@ class Timezone { ...@@ -29,12 +29,12 @@ class Timezone {
if(!$id && !($id=$this->getId())) if(!$id && !($id=$this->getId()))
return false; return false;
$sql='SELECT * FROM '.TIMEZONE_TABLE.' WHERE timezone_id='.db_input($id); $sql='SELECT * FROM '.TIMEZONE_TABLE.' WHERE id='.db_input($id);
if(!($res=db_query($sql)) || !db_num_rows($res)) if(!($res=db_query($sql)) || !db_num_rows($res))
return false; return false;
$this->ht=db_fetch_array($res); $this->ht=db_fetch_array($res);
$this->id=$this->ht['timezone_id']; $this->id=$this->ht['id'];
return $this->id; return $this->id;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment