diff options
author | darwinel <kmorssink@gmail.com> | 2014-02-09 02:04:23 +0100 |
---|---|---|
committer | darwinel <kmorssink@gmail.com> | 2014-02-09 02:04:23 +0100 |
commit | cf63aee92d7f337ac5a322e4185a9bc952a1d4f4 (patch) | |
tree | 2eeb5c4c82f912a04384e8c7080e0b9ef976367b /system/database/drivers/mssql | |
parent | 06f43faefd0f212447b9776718ec61c5ebc6de61 (diff) |
Style Guide
Logical Operators
Use of || is discouraged as its clarity on some output devices is low
(looking like the number 11 for instance). && is preferred over AND but
either are acceptable, and a space should always precede and follow !
Diffstat (limited to 'system/database/drivers/mssql')
-rw-r--r-- | system/database/drivers/mssql/mssql_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/mssql/mssql_driver.php b/system/database/drivers/mssql/mssql_driver.php index 0836fa802..49711fec9 100644 --- a/system/database/drivers/mssql/mssql_driver.php +++ b/system/database/drivers/mssql/mssql_driver.php @@ -311,7 +311,7 @@ class CI_DB_mssql_driver extends CI_DB { .' FROM '.$this->escape_identifiers('sysobjects') .' WHERE '.$this->escape_identifiers('type')." = 'U'"; - if ($prefix_limit !== FALSE AND $this->dbprefix !== '') + if ($prefix_limit !== FALSE && $this->dbprefix !== '') { $sql .= ' AND '.$this->escape_identifiers('name')." LIKE '".$this->escape_like_str($this->dbprefix)."%' " .sprintf($this->_like_escape_str, $this->_like_escape_chr); |