diff --git a/bin/syncobjectattributes.php b/bin/syncobjectattributes.php index 46ba34e..7bc46c6 100644 --- a/bin/syncobjectattributes.php +++ b/bin/syncobjectattributes.php @@ -229,7 +229,7 @@ function updateClass( $classId, $scheduledScript ) // Log in admin user $user = eZUser::fetchByName( isset( $options['admin-user'] ) ? $options['admin-user'] : 'admin' ); if ( $user ) - eZUser::setCurrentlyLoggedInUser( $user, $user->attribute( 'id' ) ); + eZUser::setCurrentlyLoggedInUser( $user, $user->attribute( 'contentobject_id' ) ); else { $cli->error( 'Could not fetch admin user object' );