[imp] RES: [horde] Quota e

Jan Schneider jan at horde.org
Sun Jul 3 03:05:34 PDT 2005


Zitat von Luiz Alfredo Baggiotto <luiz at pucrs.br>:

> Hello Jan
>
> Thank´s a lot for your help. :-)
> I made the change in the line "74" of imp/lib/Quota/command.php file, 
> following your suggestion below, but the problem persists. I think 
> the output of quota command is Ok (at least, when I run it in the 
> console, the results are showed in the monitor), but by any reason 
> PHP can´t get it.
> To test the $junk variable, I was changed the following line too:
>
> 73:    if (($return_code == 0) && (count($quota_data) == 1)) {
>
> to
>
> 73:    if ($junk == 0) {
>
> Then, I logged in the browser and the code subsequent has been 
> executed (is it that because the variable is empty, true?), showing 
> the error
>
> Notice: Undefined offset: 0 in .../Quota/command.php on line 74
> Notice: Undefined offset: 1 in .../Quota/command.php on line 75
> Notice: Undefined offset: 2 in .../Quota/command.php on line 75
>
> Can you see any other alternative?

You could rewrite the command quota driver to use popen() instead.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the imp mailing list