diff --git a/airtime_mvc/application/models/Schedule.php b/airtime_mvc/application/models/Schedule.php index d491ed886..fb71a8f02 100644 --- a/airtime_mvc/application/models/Schedule.php +++ b/airtime_mvc/application/models/Schedule.php @@ -581,8 +581,10 @@ class Application_Model_Schedule { } public static function deleteWithFileId($fileId){ - global $CC_CONFIG, $CC_DBC; - $CC_DBC->query("DELETE FROM ".$CC_CONFIG["scheduleTable"]." WHERE file_id=$fileId"); + global $CC_CONFIG; + $con = Propel::getConnection(); + $sql = "DELETE FROM ".$CC_CONFIG["scheduleTable"]." WHERE file_id=$fileId"; + $res = $con->query($sql); } public static function createNewFormSections($p_view){