mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 17:29:18 -04:00
Skip over empty import modes. Fixes ticket #227
This commit is contained in:
@@ -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]) {
|
||||
|
||||
Reference in New Issue
Block a user