Commit 13db511a authored by gdd's avatar gdd

Stramlined read code slightly

parent e666688a
......@@ -19,8 +19,7 @@ public function read() {
// catch the exception and just return an empty array so the caller can
// handle it if need be.
try {
$result = db_query('SELECT data FROM {config} WHERE name = :name', array(':name' => $this->name))->fetchField();
return $result;
return db_query('SELECT data FROM {config} WHERE name = :name', array(':name' => $this->name))->fetchField();
} catch (Exception $e) {
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