cvs: pear /Auth/Container MDB.php MDB2.php
| From: | Lorenzo Alberton | Date: | Sun, 04 Jul 2004 20:59:13 +0000 |
| Subject: | cvs: pear /Auth/Container MDB.php MDB2.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-21505@lists.php.net to get a copy of this message | ||
quipo Sun Jul 4 16:59:13 2004 EDT
Modified files:
/pear/Auth/Container MDB.php MDB2.php
Log:
minor tweaks
http://cvs.php.net/diff.php/pear/Auth/Container/MDB.php?r1=1.17&r2=1.18&ty=u
Index: pear/Auth/Container/MDB.php
diff -u pear/Auth/Container/MDB.php:1.17 pear/Auth/Container/MDB.php:1.18
--- pear/Auth/Container/MDB.php:1.17 Sun Jul 4 16:34:19 2004
+++ pear/Auth/Container/MDB.php Sun Jul 4 16:59:13 2004
@@ -16,7 +16,7 @@
// | Author: Lorenzo Alberton <l.alberton@quipo.it> |
// +----------------------------------------------------------------------+
//
-// $Id: MDB.php,v 1.17 2004/07/04 20:34:19 quipo Exp $
+// $Id: MDB.php,v 1.18 2004/07/04 20:59:13 quipo Exp $
//
require_once 'Auth/Container.php';
@@ -30,7 +30,7 @@
*
* @author Lorenzo Alberton <l.alberton@quipo.it>
* @package Auth
- * @version $Revision: 1.17 $
+ * @version $Revision: 1.18 $
*/
class Auth_Container_MDB extends Auth_Container
{
@@ -229,7 +229,7 @@
return PEAR::raiseError($err->getMessage(), $err->getCode());
}
- // Find if db_fileds contains a *, i so assume all col are selected
+ //Check if db_fields contains a *, if so assume all columns are selected
if (strstr($this->options['db_fields'], '*')) {
$sql_from = '*';
} else {
@@ -457,10 +457,9 @@
*/
function supportsChallengeResponse()
{
- if ($this->options['cryptType'] == 'md5' ||
$this->options['cryptType'] == 'none' ||
$this->options['cryptType'] == '') {
- return true;
- }
- return false;
+ return ($this->options['cryptType'] == 'md5' ||
+ $this->options['cryptType'] == 'none' ||
+ $this->options['cryptType'] == '');
}
// }}}
http://cvs.php.net/diff.php/pear/Auth/Container/MDB2.php?r1=1.3&r2=1.4&ty=u
Index: pear/Auth/Container/MDB2.php
diff -u pear/Auth/Container/MDB2.php:1.3 pear/Auth/Container/MDB2.php:1.4
--- pear/Auth/Container/MDB2.php:1.3 Sun Jul 4 16:31:54 2004
+++ pear/Auth/Container/MDB2.php Sun Jul 4 16:59:13 2004
@@ -16,7 +16,7 @@
// | Author: Lorenzo Alberton <l.alberton@quipo.it> |
// +----------------------------------------------------------------------+
//
-// $Id: MDB2.php,v 1.3 2004/07/04 20:31:54 quipo Exp $
+// $Id: MDB2.php,v 1.4 2004/07/04 20:59:13 quipo Exp $
//
require_once 'Auth/Container.php';
@@ -30,7 +30,7 @@
*
* @author Lorenzo Alberton <l.alberton@quipo.it>
* @package Auth
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
class Auth_Container_MDB2 extends Auth_Container
{
@@ -229,7 +229,7 @@
return PEAR::raiseError($err->getMessage(), $err->getCode());
}
- // Find if db_fileds contains a *, i so assume all col are selected
+ //Check if db_fields contains a *, if so assume all columns are selected
if (strstr($this->options['db_fields'], '*')) {
$sql_from = '*';
} else {
@@ -455,10 +455,9 @@
*/
function supportsChallengeResponse()
{
- if ($this->options['cryptType'] == 'md5' ||
$this->options['cryptType'] == 'none' ||
$this->options['cryptType'] == '') {
- return true;
- }
- return false;
+ return ($this->options['cryptType'] == 'md5' ||
+ $this->options['cryptType'] == 'none' ||
+ $this->options['cryptType'] == '');
}
// }}}