function get_handlers($activity) { if ($activity == null || strlen($activity) <= 0) { return array(); } $jsondb = SimpleJSONDB::getInstance(); $dmArr = $jsondb->getItem("default_handlers", $activity); if (is_array($dmArr) && $dmArr["enabled"]) { return $dmArr["opts"]; } else { return array(); } }