[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-cvs
Subject:    [PEAR-CVS] cvs: pear /File File.php
From:       "Tal Peer" <tal () xed ! dk>
Date:       2002-04-29 20:49:04
[Download RAW message or body]

tal		Mon Apr 29 16:49:04 2002 EDT

  Modified files:              
    /pear/File	File.php 
  Log:
  Shorter _checkAppend() function.
  
Index: pear/File/File.php
diff -u pear/File/File.php:1.12 pear/File/File.php:1.13
--- pear/File/File.php:1.12	Sat Apr 27 08:17:56 2002
+++ pear/File/File.php	Mon Apr 29 16:49:04 2002
@@ -112,11 +112,7 @@
     */
     function _checkAppend($append)
     {
-        if ($append) {
-            return FILE_MODE_APPEND;
-        } else {
-            return FILE_MODE_WRITE;
-        }
+        $append ? return FILE_MODE_APPEND : return FILE_MODE_WRITE;
     }
 
     /**



-- 
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic