Commit 97410a1605b9952efb2cc101193de9ea6e34b500
1 parent
7d1b120b
Fixed undefined variable problem
Showing
1 changed file
with
1 additions
and
1 deletions
lib/smbind.class.php
@@ -257,7 +257,7 @@ | @@ -257,7 +257,7 @@ | ||
257 | $dbopt = array('persistent' => true,); | 257 | $dbopt = array('persistent' => true,); |
258 | $db = MDB2::factory($dsn, $dbopt); | 258 | $db = MDB2::factory($dsn, $dbopt); |
259 | if (MDB2::isError($db)) { | 259 | if (MDB2::isError($db)) { |
260 | - die("Database error: " . MDB2::errorMessage($dbconnect)); | 260 | + die("Database error: " . MDB2::errorMessage($db)); |
261 | } else { | 261 | } else { |
262 | $db->setFetchMode(MDB2_FETCHMODE_ASSOC); | 262 | $db->setFetchMode(MDB2_FETCHMODE_ASSOC); |
263 | } | 263 | } |