<?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>Call to a member function hasCapability() on a non-object</title> 
  <pubDate>Fri, 10 Apr 2026 14:37:16 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8808</link> 
  <atom:link rel="self" type="application/rss+xml" title="Call to a member function hasCapability() on a non-object" href="https://bugs.horde.org/ticket/8808/rss" /> 
  <description>Call to a member function hasCapability() on a non-object</description> 
 
   
   
  <item> 
   <title>When 

  $conf[&#039;vacation&#039;][&#039;from&#039;] = true

Trying to set</title> 
   <description>When 

  $conf[&#039;vacation&#039;][&#039;from&#039;] = true

Trying to set the vacation notice gives this error:

Call to a member function hasCapability() on a non-object in /usr/share/horde3/vacation/lib/Driver.php on line 255

On that line there is a call to:
  
  $driver-&gt;hasCapability(&#039;changeFrom&#039;)

But $driver is a variable that contains the name aof the driver selected and not driver object

Patch to fix this attached.

Hope it helps.

======
Ruben Squartini
Administrador Tecnico y de Sistemas
Proyecto Observatorio Pierre Auger
Av. San Martin (N) 304
Malargue - Mendoza
Tel.: +54 2627 471556/562/579
http://www.linkedin.com/in/rubensquartini
===============================</description> 
   <pubDate>Tue, 29 Dec 2009 13:51:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8808#t57356</link> 
  </item> 
   
  <item> 
   <title>This bug bite us, too.

When user try set vacation message</title> 
   <description>This bug bite us, too.

When user try set vacation message
------------
PHP Fatal error:  Call to a member function hasCapability() on a non-object in /var/www/sslsites/vacation/lib/Driver.php on line 255

And, when user try switch off exsisting vacation message,
------------
PHP Fatal error:  Call to a member function hasCapability() on a non-object in /var/www/sslsites/vacation/lib/Driver.php on line 320

Monk Viktor
Valamo monastery
</description> 
   <pubDate>Wed, 30 Dec 2009 11:18:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8808#t57360</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

[jan] Fix dr</title> 
   <description>Changes have been made in CVS for this ticket:

[jan] Fix driver capability check if users are allowed to change From: headers
(Bug #8808).
http://cvs.horde.org/diff.php/vacation/docs/CHANGES?rt=horde&amp;r1=1.57.2.25&amp;r2=1.57.2.26&amp;ty=u
http://cvs.horde.org/diff.php/vacation/lib/Driver.php?rt=horde&amp;r1=1.35.2.8&amp;r2=1.35.2.9&amp;ty=u</description> 
   <pubDate>Wed, 30 Dec 2009 16:23:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8808#t57368</link> 
  </item> 
   
  <item> 
   <title>Fixed, thanks.</title> 
   <description>Fixed, thanks.</description> 
   <pubDate>Wed, 30 Dec 2009 16:23:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8808#t57370</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

MFB:
[jan] F</title> 
   <description>Changes have been made in CVS for this ticket:

MFB:
[jan] Fix driver capability check if users are allowed to change From: headers
(Bug #8808).
http://cvs.horde.org/diff.php/vacation/docs/CHANGES?rt=horde&amp;r1=1.82&amp;r2=1.83&amp;ty=u
http://cvs.horde.org/diff.php/vacation/lib/Driver.php?rt=horde&amp;r1=1.54&amp;r2=1.55&amp;ty=u</description> 
   <pubDate>Wed, 30 Dec 2009 18:01:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8808#t57375</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
