diff --git a/inc/common.php b/inc/common.php
index df84496aca676d910dafa25067e3898a58135774..e1ccb94b5e8ee88def6b37c1e42adb6873ff2013 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -185,7 +185,7 @@ function msg($message,$lvl=0){
   $errors[0]  = 'info';
   $errors[1]  = 'success';
 
-  if(!headers_sent){
+  if(!headers_sent()){
     if(!isset($MSG)) $MSG = array();
     $MSG[]=array('lvl' => $errors[$lvl], 'msg' => $message);
   }else{