Skip over empty import modes. Fixes ticket #227

This commit is contained in:
Bharat Mediratta
2009-05-17 00:46:53 +00:00
parent 245c840405
commit 17c58c8dce

View File

@@ -75,6 +75,13 @@ class g2_import_task_Core {
$mode++;
$task->set("last_id", 0);
$queue = array();
// Start the loop from the beginning again. This way if we get to a mode that requires no
// actions (eg, if the G2 comments module isn't installed) we won't try to do any comments
// queries.. in the next iteration we'll just skip over that mode.
if ($modes[$mode] != "done") {
continue;
}
}
switch($modes[$mode]) {