From: Mark A. Hershberger Date: Wed, 4 Jan 2012 16:43:46 +0000 (+0000) Subject: follow up r107932 with w/s fixes X-Git-Tag: 1.31.0-rc.0~25537 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=0911c3dd817eade75acb94ed4737d371e9cffd6d;p=lhc%2Fweb%2Fwiklou.git follow up r107932 with w/s fixes --- diff --git a/includes/db/Database.php b/includes/db/Database.php index 57d98adf3d..3da148681a 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -686,8 +686,8 @@ abstract class DatabaseBase implements DatabaseType { isset( $p['flags'] ) ? $p['flags'] : 0, isset( $p['tablePrefix'] ) ? $p['tablePrefix'] : 'get from global' ); - } elseif (class_exists($class)) { - return new $class($p); + } elseif ( class_exists( $class ) ) { + return new $class( $p ); } else { return null; } @@ -3209,7 +3209,7 @@ abstract class DatabaseBase implements DatabaseType { /** * Called by sourceStream() to check if we've reached a statement end - * + * * @param $sql String: SQL assembled so far * @param $newLine String: New line about to be added to $sql * @returns Bool: Whether $newLine contains end of the statement