check that output buffering functions exist - they are 4.3 only
authorchriskl <chriskl>
Fri, 9 Jul 2004 03:23:01 +0000 (03:23 +0000)
committerchriskl <chriskl>
Fri, 9 Jul 2004 03:23:01 +0000 (03:23 +0000)
classes/Misc.php

index a2bf41559c807a59dc0c1da87b67c3e6d47c0423..03b15216cbc1eb745c3dfb2ffbbc34f3d50443a8 100644 (file)
@@ -2,7 +2,7 @@
        /**
         * Class to hold various commonly used functions
         *
-        * $Id: Misc.php,v 1.68 2004/07/08 03:23:01 chriskl Exp $
+        * $Id: Misc.php,v 1.69 2004/07/09 03:23:01 chriskl Exp $
         */
         
        class Misc {
                                }
                                echo "</tr>\n";
                                
-                               ob_start();
+                               if (function_exists('ob_start')) ob_start();
                                
                                $i = 0;
                                while (!$tabledata->EOF) {
                                        }
                                        echo "</tr>\n";
                                        
-                                       ob_flush();
+                                       if (function_exists('ob_flush')) ob_flush();
                                        $tabledata->moveNext();
                                        $i++;
                                }
                                
-                               ob_end_flush();
+                               if (function_exists('ob_end_flush')) ob_end_flush();
                                
                                echo "</table>\n";