diff --git a/airtime_mvc/application/common/Database.php b/airtime_mvc/application/common/Database.php index bb9557474..b314fea0d 100644 --- a/airtime_mvc/application/common/Database.php +++ b/airtime_mvc/application/common/Database.php @@ -1,6 +1,11 @@ execute()) { - if ($type == 'single') { + if ($type == self::SINGLE) { $rows = $stmt->fetch($fetchType); - } else if ($type == 'column'){ + } else if ($type == self::COLUMN){ $rows = $stmt->fetchColumn(); - } else if ($type == 'all') { + } else if ($type == self::ALL) { $rows = $stmt->fetchAll($fetchType); - } else if ($type == 'execute') { + } else if ($type == self::EXECUTE) { $rows = null; } else { $msg = "bad type passed: type($type)";