[Tickets] New ticket (124): bug in javascript call when filtering based on keyword

bugs at bugs.horde.org bugs at bugs.horde.org
Mon Apr 26 12:34:29 PDT 2004


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

-Ticket 124
-Queue: Midas
-Created By: 

-Summary:
bug in javascript call when filtering based on keyword

Comment by email at teletechnics.com on Mon Apr 26 12:34:28 2004 (today):
When trying to call an ad with a javascript call to..
http://i-pt.securesites.com/midas/ad.php?d=js&k=KEYWORD

returns errors:
Notice: Undefined variable: keyword in
/usr/local/etc/httpd/vhosts/horde-cvs/midas/lib/Campaigns.php on line 115

Fatal error: Call to a member function on a non-object in
/usr/local/etc/httpd/vhosts/horde-cvs/midas/lib/Campaigns.php on line 118


Error 1 is fixed by changing
            /* Split up all the keywords into an array consisting only of
             * unique keywords. */
-            $target_words = array_unique(preg_split('|\s+|', $keyword));
+            $target_words = array_unique(preg_split('|\s+|',
$target_words));
        }

        $avail_words = $this->_campaigns->getKeywords('active');


Error 2
I have tried to follow the code and cannot find anything. So was hoping if
someone else could cast an eye on this.

Thanks,
tim.

--


http://bugs.horde.org/details.php?id=124

-- 


More information about the bugs mailing list