Fixed improper usage of function_exists() in captcha
authorDan
Sun, 21 Jun 2009 00:14:45 -0400
changeset 1025 30956e5092ff
parent 1024 722f4beeceb6
child 1026 f0431eb8161e
Fixed improper usage of function_exists() in captcha
includes/captcha.php
--- a/includes/captcha.php	Mon Jun 15 20:10:30 2009 -0400
+++ b/includes/captcha.php	Sun Jun 21 00:14:45 2009 -0400
@@ -83,7 +83,7 @@
     $this->id = $row['code_id'];
     
     // run any custom init functions
-    if ( function_exists(array($this, 'construct_hook')) )
+    if ( method_exists($this, 'construct_hook') )
       $this->construct_hook();
   }