From cc20ad515f19b48e65d1ccbd3d5f0056276a2816 Mon Sep 17 00:00:00 2001
From: andi <andi@splitbrain.org>
Date: Tue, 8 Feb 2005 12:46:35 +0100
Subject: [PATCH] bugfix for msg() (#124)

darcs-hash:20050208114635-9977f-ff00e04a36857cf338b6695313d14b2943000a7d.gz
---
 inc/common.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/common.php b/inc/common.php
index df84496ac..e1ccb94b5 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{
-- 
GitLab