public static function isApplicable() { patch::$isPathchable = false; $con = Propel::getConnection("workflow"); $stmt = $con->prepareStatement("describe TASK;"); $rs = $stmt->executeQuery(); $rs->next(); while ($row = $rs->getRow()) { if ($row['Field'] == "TAS_GROUP_VARIABLE") { $version = System::getVersion(); $version = explode('-', $version); if ($version[0] == '2.5.1') { echo "Version " . $version[0] . " Patch\n"; patch::$isPathchable = true; } break; } $rs->next(); } return patch::$isPathchable; }