Commit 13db511a authored by gdd's avatar gdd

Stramlined read code slightly

parent e666688a
...@@ -19,8 +19,7 @@ public function read() { ...@@ -19,8 +19,7 @@ public function read() {
// catch the exception and just return an empty array so the caller can // catch the exception and just return an empty array so the caller can
// handle it if need be. // handle it if need be.
try { try {
$result = db_query('SELECT data FROM {config} WHERE name = :name', array(':name' => $this->name))->fetchField(); return db_query('SELECT data FROM {config} WHERE name = :name', array(':name' => $this->name))->fetchField();
return $result;
} catch (Exception $e) { } catch (Exception $e) {
return array(); return array();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment