]> git.nbdom.net Git - nb.git/commitdiff
docker, no decryption when dump db
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 17 Nov 2016 09:15:07 +0000 (10:15 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 17 Nov 2016 09:15:07 +0000 (10:15 +0100)
etc/profile.d/docker.sh
lib/php/db/table.php

index 7b81e9ebccb2cd79461e15ced453fab1fcd241bc..dfdc5e86831d39fbd2bd5f46c66fae36bc800e64 100644 (file)
@@ -27,7 +27,7 @@ docker_build() {
   fi
 
   local ex=0
-  if [ -n "$(docker images -q $docker_name 2>/dev/null)" ]; then
+  if [ -n "$(docker images -q $docker_name:latest 2>/dev/null)" ]; then
     echo "$FUNCNAME: $docker_name already build."
     ex=2
 
index 4cad46f3929e8ce129004faa871b51f05f421dfc..79a6eae252c1ee63617c806d8c620f8a4a20ff9e 100644 (file)
@@ -806,20 +806,20 @@ Class Table extends nb {
 
     # Parser on/off (default: on)
     if (!isset($opt['parser'])) $opt['parser'] = true;
-    $parse = $opt['parser'];
-    #bye($parse);
+    $parser = $opt['parser'];
+    #bye($parser);
 
     while ($row = $st->fetch(PDO::FETCH_ASSOC, PDO::FETCH_ORI_NEXT)) {
 
       $count++;
       $call = null;
 
-      $this->db()->table_row_decrypt($this,$row);
-      if ($parse and !empty($this->db()->row_parse)) {
+      if ($parser) $this->db()->table_row_decrypt($this,$row);
+      if ($parser and !empty($this->db()->row_parse)) {
         $call = $this->db()->row_parse; $call($row);
       }
 
-      if ($parse and !empty($this->row_parse_pre)) {
+      if ($parser and !empty($this->row_parse_pre)) {
         $call = $this->row_parse_pre; $call($row);
       }
 
@@ -830,7 +830,7 @@ Class Table extends nb {
 
       }
 
-      if ($parse and !empty($this->row_parse_post)) {
+      if ($parser and !empty($this->row_parse_post)) {
         $call = $this->row_parse_post; $call($row);
       }