diff options
author | Marc Poulhiès <github@kataplop.net> | 2009-06-10 22:57:29 +0800 |
---|---|---|
committer | <unostar@danalan.info> | 2009-06-11 15:53:32 +0800 |
commit | dfa7ec6b0be19a3c03f6bc2f8f09117c1535d37d (patch) | |
tree | 2c9d097a78d660e0bf32e0d6236bb2c37ed33511 | |
parent | a5cc8076cee402c2d71e2d0ba2d51061ee0a7966 (diff) |
fix init_embed. test was not correct
Signed-off-by: <unostar@danalan.info>
-rw-r--r-- | modules/g2_import/helpers/g2_import.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php index 648f3809..01e07eba 100644 --- a/modules/g2_import/helpers/g2_import.php +++ b/modules/g2_import/helpers/g2_import.php @@ -54,7 +54,7 @@ class g2_import_Core { * Initialize the embedded Gallery2 instance. Call this before any other Gallery2 calls. */ static function init_embed($embed_path, $multi_path) { - if (!is_file($embed_path) || (!empty($multi_path) && !is_dir($multi_path))) { + if (!is_file($embed_path) && (empty($multi_path) || is_dir($multi_path))) { return false; } |