[horde] small patch to hooks.php-dist

Ronnie Garcia ronnie at mk2.net
Sun Nov 17 16:21:02 PST 2002


here's a small patch to fix a warning that happends before logging in.

Rgds,
Ronnie.
-------------- next part --------------
cvs diff hooks.php.dist (in directory D:\taf\projets\cvsroot\horde\config\)
Index: hooks.php.dist
===================================================================
RCS file: /repository/horde/config/hooks.php.dist,v
retrieving revision 1.19
diff -r1.19 hooks.php.dist
94,96c94,97
<         if ($_SESSION['imp']['server'] != 'mail.example.com') {
<             return $_SESSION['imp']['user'];
<         }
---
>         if (!empty($_SESSION['imp']['user'])) {
>             if ($_SESSION['imp']['server'] != 'mail.example.com') {
>                 return $_SESSION['imp']['user'];
>             }
98,100c99,102
<         $cmd = '/usr/local/bin/ph unix=' . escapeShellCmd($_SESSION['imp']['user']) . ' | /bin/grep email | /usr/bin/awk \'{print $2}\'';
<         $name = `$cmd`;
<         return (empty($name) ? $_SESSION['imp']['user'] : $name);
---
>             $cmd = '/usr/local/bin/ph unix=' . escapeShellCmd($_SESSION['imp']['user']) . ' | /bin/grep email | /usr/bin/awk \'{print $2}\'';
>             $name = `$cmd`;
>             return (empty($name) ? $_SESSION['imp']['user'] : $name);
>         }


More information about the horde mailing list