fixed typo, preventing links with a certain app to be found

This commit is contained in:
Ralf Becker 2008-03-10 21:01:28 +00:00
parent 62ad7b05eb
commit 5042a302d6

View File

@ -122,7 +122,7 @@ class solink
{
echo "<p>solink.get_links($app,".print_r($id,true).",$only_app,$order)</p>\n";
}
if ($not_only = $only_app[0] == '!')
if (($not_only = $only_app[0] == '!'))
{
$only_app = substr($only_app,1);
}
@ -150,7 +150,7 @@ class solink
'app' => $row['link_app1'],
'id' => $row['link_id1']
);
$app_id = $row['link_id1'];
$app_id = $row['link_id2'];
}
if ($only_app && $not_only == ($link['app'] == $only_app) ||
!$GLOBALS['egw_info']['user']['apps'][$link['app']])