Skip to content

Commit 92531db

Browse files
committed
closes #4
1 parent e35b05b commit 92531db

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

code/Fields.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use FormTools\General;
99
use FormTools\Modules;
1010
use FormTools\Sessions;
11-
use PDO, PDOException;
11+
use PDO;
1212
use Smarty, SmartyBC;
1313

1414

@@ -119,7 +119,7 @@ public static function updateField($client_field_id, $info, $L)
119119
"client_field_id" => $client_field_id
120120
));
121121
$db->execute();
122-
} catch (PDOException $e) {
122+
} catch (Exception $e) {
123123
return array(false, $L["notify_field_not_updated"] . $e->getMessage());
124124
}
125125

code/Module.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use FormTools\Module as FormToolsModule;
1010
use FormTools\Modules;
1111

12-
use PDOException;
12+
use Exception;
1313

1414

1515
class Module extends FormToolsModule
@@ -79,7 +79,7 @@ public function install($module_id)
7979

8080
$this->resetHooks();
8181

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

0 commit comments

Comments
 (0)