diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php
index 56e93e6da6..c8b5446059 100644
--- a/phpgwapi/inc/functions.inc.php
+++ b/phpgwapi/inc/functions.inc.php
@@ -309,8 +309,7 @@ function ExecObject($object, $functionparams = '_UNDEF_', $loglevel = 3, $classp
/* Make sure the developer is following the rules. */
if (!isset($GLOBALS['phpgw_info']['flags']['currentapp']))
{
- $phpgw->log->message('W-MissingFlags, currentapp flag not set');
- $phpgw->log->commit();
+ $phpgw->log->write(array('text'=>'W-MissingFlags, currentapp flag not set'));
echo '!!! YOU DO NOT HAVE YOUR $phpgw_info["flags"]["currentapp"] SET !!!';
echo '
!!! PLEASE CORRECT THIS SITUATION !!!';
@@ -600,8 +599,7 @@ function ExecObject($object, $functionparams = '_UNDEF_', $loglevel = 3, $classp
/* Hope we don't get to this point. Better then the user seeing a */
/* complety back screen and not know whats going on */
echo '