diff --git a/airtime_mvc/application/common/Database.php b/airtime_mvc/application/common/Database.php index 96e6e6770..d0ee39b78 100644 --- a/airtime_mvc/application/common/Database.php +++ b/airtime_mvc/application/common/Database.php @@ -1,6 +1,7 @@ prepare($sql); foreach ($paramValueMap as $param => $v) { @@ -10,7 +11,7 @@ class Application_Common_Database{ if ($stmt->execute()) { if ($type == 'single') { $rows = $stmt->fetch(PDO::FETCH_ASSOC); - } else if ($type == 'column'){ + } elseif ($type == 'column'){ $rows = $stmt->fetchColumn(); } else { $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); @@ -21,4 +22,4 @@ class Application_Common_Database{ } return $rows; } -} \ No newline at end of file +}