<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>bug in javascript call when filtering based on keyword</title> 
  <pubDate>Fri, 10 Apr 2026 11:02:36 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/124</link> 
  <atom:link rel="self" type="application/rss+xml" title="bug in javascript call when filtering based on keyword" href="https://bugs.horde.org/ticket/124/rss" /> 
  <description>bug in javascript call when filtering based on keyword</description> 
 
   
   
  <item> 
   <title>When trying to call an ad with a javascript call to..

http:</title> 
   <description>When trying to call an ad with a javascript call to..

http://i-pt.securesites.com/midas/ad.php?d=js&amp;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(&#039;|\s+|&#039;, $keyword));

+            $target_words = array_unique(preg_split(&#039;|\s+|&#039;, $target_words));

        }



        $avail_words = $this-&gt;_campaigns-&gt;getKeywords(&#039;active&#039;);





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.</description> 
   <pubDate>Mon, 26 Apr 2004 19:34:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/124#t479</link> 
  </item> 
   
  <item> 
   <title></title> 
   <description></description> 
   <pubDate>Mon, 26 Apr 2004 19:37:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/124#t480</link> 
  </item> 
   
  <item> 
   <title>Fixed in CVS.</title> 
   <description>Fixed in CVS.</description> 
   <pubDate>Mon, 26 Apr 2004 22:23:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/124#t481</link> 
  </item> 
   
  <item> 
   <title>Now some random behaviour



ie. calling 

http://site.com/m</title> 
   <description>Now some random behaviour



ie. calling 

http://site.com/midas/ad.php?d=js



the output may be



document.write(&#039;&#039;);

**note empty quotes

or

document.write(&#039;[IMAGE]&#039;);

** ie correct

or

Notice: Undefined offset: 3 in /usr/local/etc/httpd/vhosts/horde-cvs/midas/lib/Campaigns.php on line 102

document.write(&#039;[IMAGE]&#039;);



setting a k=KEYWORD

does not actually restrict selection to the ones with a (the) KEYWORD set, but seems show any ad available.</description> 
   <pubDate>Tue, 27 Apr 2004 11:51:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/124#t482</link> 
  </item> 
   
  <item> 
   <title>Ok, reopening this.</title> 
   <description>Ok, reopening this.</description> 
   <pubDate>Wed, 28 Apr 2004 13:38:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/124#t483</link> 
  </item> 
   
  <item> 
   <title>Fixed the type and keyword filtering, as well as a bunch of </title> 
   <description>Fixed the type and keyword filtering, as well as a bunch of other small typos, errors and miscalculations, which all put together meant erratic results.</description> 
   <pubDate>Sun, 02 May 2004 22:47:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/124#t484</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
