<?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>CustomSQL Auth - function exists</title> 
  <pubDate>Sun, 05 Apr 2026 06:49:32 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/5151?Horde=fd0600a90740a00a1c46fdc1b902fe63</link> 
  <atom:link rel="self" type="application/rss+xml" title="CustomSQL Auth - function exists" href="https://bugs.horde.org/ticket/5151/rss?Horde=fd0600a90740a00a1c46fdc1b902fe63" /> 
  <description>CustomSQL Auth - function exists</description> 
 
   
   
  <item> 
   <title>There is no definition for the function &quot;exists &quot; in the cus</title> 
   <description>There is no definition for the function &quot;exists &quot; in the customSQL Auth Backend. By default, the function of the SQL backend is used but unfortunatly it doesn&#039;t work.



Parameters for SQL and CustomSQL are different. I propuse using the following function in the class customSQL :



    function exists($userId)

    {

        return in_array($userId, $this-&gt;listUsers());

    }



Otherwise, we can ask the user a query handling the existance of an user. This could be more efficient than listing all users and then searching him in the array...



Best regards,



x3n

http://www.molinier.eu</description> 
   <pubDate>Thu, 22 Mar 2007 16:36:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5151#t30622</link> 
  </item> 
   
  <item> 
   <title>Implemented by adding query_exists to the driver configurati</title> 
   <description>Implemented by adding query_exists to the driver configuration in HEAD.</description> 
   <pubDate>Fri, 23 Mar 2007 20:04:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5151#t30655</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
