Hi, i was testing egroupware and get the same error!
I find the solution looking at the php code, it show warning because it try to run this function to later check if is array!
My solution:
egroupware/phpgwapi/inc/class.html.inc.php
921c921
< if (!strstr($url,’/’) && count(explode(’.’,$url)) == 3)
if (!@strstr($url,'/') && count(explode('.',$url)) == 3)
Just put a @ in the strstr function to dont show warning!
Maybe the correct way is:
function a_href( $content,$url,$vars=’’,$options=’’)
{
if (is_array($url))
{
$vars = $url;
$url = ‘/index.php’;
}
if (!strstr($url,’/’) && count(explode(’.’,$url)) == 3)
{
$url = “/index.php?menuaction=$url”;
}
//echo “
html::a_href(’”.htmlspecialchars($content)."’,’$url’,".print_r($vars,True).") = “.$this->link($url,$vars).”
";
return ‘<a href="’.$this->link($url,$vars).’" ‘.$options.’>’.$content.’’;
}
Both solution works for me! I look in the SVN about this and this code dissapear,so wont gonna happen on future versions.
[]´s
Hi,
following php warning occurs when I open the calendar.
Warning: mb_strstr() expects parameter 1 to be string, array given in C:\xampp\htdocs\MMLGeschaeftsfuehrung\phpgwapi\inc\class.html.inc.php on line 921
We use PHP 5.2.1 .
Grettings Joachim
[/quote]