Skip to content

Commit

Permalink
Avoid PHP existence NOTICE.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 22, 2016
1 parent c8f16d7 commit 3e9f924
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion passwd/lib/Factory/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ public function create($name, $params = array())

case 'Passwd_Driver_Sql':
case 'Passwd_Driver_Vpopmail':
if (!($backend['params']['db'] instanceof Horde_Db_Adapter)) {
if (empty($backend['params']['db']) ||
!($backend['params']['db'] instanceof Horde_Db_Adapter)) {
try {
if (empty($backend['params'])) {
$backend['params']['db'] = $this->_injector
Expand Down

0 comments on commit 3e9f924

Please sign in to comment.