From 5a023f5e0c9f66263d0acdd19d92bc21a5c9ea36 Mon Sep 17 00:00:00 2001 From: "Thomas E. Horner" Date: Thu, 15 Mar 2012 20:30:57 +0100 Subject: [PATCH] fixed error handling --- 3.0/modules/g1_import/helpers/Gallery1DataParser.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/3.0/modules/g1_import/helpers/Gallery1DataParser.php b/3.0/modules/g1_import/helpers/Gallery1DataParser.php index 2686e27d..6aa6acf6 100644 --- a/3.0/modules/g1_import/helpers/Gallery1DataParser.php +++ b/3.0/modules/g1_import/helpers/Gallery1DataParser.php @@ -52,14 +52,13 @@ class Gallery1DataParser { is_readable($fileName . '.bak')) { $fileName .= '.bak'; } else { - return array(GalleryCoreApi::error(ERROR_BAD_PARAMETER, __FILE__, __LINE__, - "Missing or not readable file: $fileName"), null); + return array('ERROR_BAD_PARAMETER', null); } } $tmp = file($fileName); if (empty($tmp)) { - return array(GalleryCoreApi::error(ERROR_MISSING_VALUE), null); + return array('ERROR_MISSING_VALUE', null); } $tmp = join('', $tmp);