Skip to content

Commit

Permalink
closes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
benkeen committed May 8, 2018
1 parent e35b05b commit 92531db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions code/Fields.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use FormTools\General;
use FormTools\Modules;
use FormTools\Sessions;
use PDO, PDOException;
use PDO;
use Smarty, SmartyBC;


Expand Down Expand Up @@ -119,7 +119,7 @@ public static function updateField($client_field_id, $info, $L)
"client_field_id" => $client_field_id
));
$db->execute();
} catch (PDOException $e) {
} catch (Exception $e) {
return array(false, $L["notify_field_not_updated"] . $e->getMessage());
}

Expand Down
4 changes: 2 additions & 2 deletions code/Module.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use FormTools\Module as FormToolsModule;
use FormTools\Modules;

use PDOException;
use Exception;


class Module extends FormToolsModule
Expand Down Expand Up @@ -79,7 +79,7 @@ public function install($module_id)

$this->resetHooks();

} catch (PDOException $e) {
} catch (Exception $e) {
$success = false;
$L = $this->getLangStrings();
$message = General::evalSmartyString($L["notify_problem_installing"], array("error" => $e->getMessage()));
Expand Down

0 comments on commit 92531db

Please sign in to comment.