Index: branches/testa-single-bookmark/php/func.php
===================================================================
--- branches/testa-single-bookmark/php/func.php	(revision 45)
+++ branches/testa-single-bookmark/php/func.php	(revision 51)
@@ -39,7 +39,9 @@
 function output_file( $fname , $content ) {
 	$file = fopen($fname, "w");
-	fwrite( $file, $content . "\n" );
-	fflush($file);
-	fclose($file);
+    if( $file !== FAlSE ){
+        fwrite( $file, $content . "\n" );
+        fflush($file);
+        fclose($file);
+    }
 }
 
