cvs: pearbot / PEARbot.php

[email protected] ("Mirco 'meebey' Bauer") Fri, 25 Jul 2003 15:46:14 -0000
Newsgroups php.pear.bot
Message-ID <cvsmeebey1059147974@cvsserver>
meebey		Fri Jul 25 11:46:14 2003 EDT

  Modified files:              
    /pearbot	PEARbot.php 
  Log:
  - fixed broken SQL statement.
  
  
Index: pearbot/PEARbot.php
diff -u pearbot/PEARbot.php:1.11 pearbot/PEARbot.php:1.12
--- pearbot/PEARbot.php:1.11	Fri Jul 25 11:42:16 2003
+++ pearbot/PEARbot.php	Fri Jul 25 11:46:14 2003
@@ -1,7 +1,7 @@
 #!/home/meebey/php
 <?php
 /**
- * $Id: PEARbot.php,v 1.11 2003/07/25 15:42:16 meebey Exp $
+ * $Id: PEARbot.php,v 1.12 2003/07/25 15:46:14 meebey Exp $
  * 
  * PEARbot
  * this is an IRC service bot for #pear written in PHP
@@ -60,7 +60,7 @@
     {
         global $mdb;
         
-        $query = "SELECT nickname,host FROM users AND ident='".$data->ident."'";
+        $query = "SELECT nickname,host FROM users WHERE ident='".$data->ident."'";
         $result = $mdb->query($query);
         if (MDB::isError($result)) {
             $this->mdbError($irc, $result);