From 8eb3d26ef24a57f812bf3d8e5e4ed56219c7f1de Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Thu, 28 Jun 2012 14:20:23 -0400
Subject: [PATCH] Fix column name typo

---
 include/class.timezone.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/class.timezone.php b/include/class.timezone.php
index 42f178b58..cdff81634 100644
--- a/include/class.timezone.php
+++ b/include/class.timezone.php
@@ -29,12 +29,12 @@ class Timezone {
         if(!$id && !($id=$this->getId()))
             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))
             return false;
 
         $this->ht=db_fetch_array($res);
-        $this->id=$this->ht['timezone_id'];
+        $this->id=$this->ht['id'];
         
         return $this->id;
     }
-- 
GitLab