From dfa7ec6b0be19a3c03f6bc2f8f09117c1535d37d Mon Sep 17 00:00:00 2001 From: Marc Poulhiès Date: Wed, 10 Jun 2009 22:57:29 +0800 Subject: fix init_embed. test was not correct Signed-off-by: --- modules/g2_import/helpers/g2_import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/g2_import/helpers') 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; } -- cgit v1.2.3