// Is this extension already installed?
if (EXT_IS_ACTIVE($ext_name)) return false;
+ // Is the task id zero? Then we need to auto-fix it here
+ if ($task_id == 0) {
+ // Try to find the task
+ $task_id = DETERMINE_EXTENSION_TASK_ID($ext_name);
+
+ // Still zero and not in dry-run?
+ if (($task_id == 0) && (!$dry_run)) {
+ // Then request a bug report
+ debug_report_bug(sprintf("%s: task_id is still zero after DETERMINE_EXTENSION_TASK_ID(%s)",
+ __FUNCTION__,
+ $ext_name
+ ));
+ } // END - if
+ } // END - if
+
// Init queries
INIT_SQLS();