Convert a raiseError to exception throwing
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 20 Oct 2010 05:33:38 +0000 (23:33 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 20 Oct 2010 16:07:15 +0000 (10:07 -0600)
framework/Data/lib/Horde/Data/Base.php

index 9580a69..4dcfc2f 100644 (file)
@@ -283,7 +283,7 @@ abstract class Horde_Data_Base
                 throw new Horde_Data_Exception($e);
             }
             if ($_FILES['import_file']['size'] <= 0) {
-                return PEAR::raiseError($this->_dict->t("The file contained no data."));
+                throw new Horde_Data_Exception($this->_dict->t("The file contained no data."));
             }
             $_SESSION['import_data']['format'] = $this->_vars->import_format;
             break;