diff options
author | Marc Poulhiès <github@kataplop.net> | 2009-06-10 16:57:29 +0200 |
---|---|---|
committer | Marc Poulhiès <github@kataplop.net> | 2009-06-10 16:57:29 +0200 |
commit | 315969e24e3ce4cbf06e5160e4738c083b2338be (patch) | |
tree | 9a0404ba10501bbbb095af508234cab87ff71667 /modules | |
parent | 9dabb6d6093e392a678e6ac1544e3dc4c968c63f (diff) |
fix init_embed. test was not correct
Diffstat (limited to 'modules')
-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; } |