fix #8131 - chinese translations
[Pman.Core] / RooPostTrait.php
index 456aa7a..3389036 100644 (file)
@@ -2,6 +2,8 @@
 
 trait Pman_Core_RooPostTrait {
     
+    var $old;
+    
     /**
      * POST method   Roo/TABLENAME  
      * -- creates, updates, or deletes data.
@@ -187,8 +189,13 @@ trait Pman_Core_RooPostTrait {
        // echo '<PRE>';print_r($affects);exit;
        // DB_Dataobject::debugLevel(1);
        
-        
-        $clean = create_function('$v', 'return (int)$v;');
+        if (function_exists('create_function')) {
+            $clean = create_function('$v', 'return (int)$v;');
+        } else {
+            $clean = function($v) {
+                return (int)$v;
+            };
+        }
         
         $bits = array_map($clean, explode(',', $req['_delete']));