When User Logged in call C5.8

Permalink
Has the code change for determining if a user is logged in?

<?php global $u; if (!$u -> isLoggedIn ()) { ?>
// Do something
<?php } ?>

It's kicking me an error saying that the call is nolonger.

The if user in edit mode is still working correctly.
<?php if ($c -> isEditMode()) { ?>
// Do something
<?php } ?>

Thanks in advance for your help

 
c5dragon replied on at Permalink Reply
c5dragon
<?php
  $u = new User();
    if($u->isLoggedIn()) {
  }
?>