]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
non existing index check and also returning the data requested at first run
authorBanana <mail@bananas-playground.net>
Sun, 3 Jan 2021 14:12:26 +0000 (15:12 +0100)
committerBanana <mail@bananas-playground.net>
Sun, 3 Jan 2021 14:12:26 +0000 (15:12 +0100)
TODO
webclient/lib/gorenest.class.php
webclient/lib/mancubus.class.php

diff --git a/TODO b/TODO
index e602a65d3659e40cd34a44be34c4ba82094c44fb..c5d0862331d28c4a60e8e23511b173530477730e 100644 (file)
--- a/TODO
+++ b/TODO
@@ -10,3 +10,4 @@
 * tag management. Edit, update and unused ones.
 * imdb collector. Number storage -> runtime
 * clickable image in card view
+* stats overview page. amount of entries. file and db storage.
index dee1e20a9838f96f0b62f4e316f4dc5acaee786d..a26f7cce964ca8dd7893200f9e544151f8593d8d 100644 (file)
@@ -99,15 +99,20 @@ class GoreNest {
         * @return array
         */
        public function get($category,$reload=false) {
+               $ret = array();
 
                if(empty($category)) return false;
 
                if(empty($reload) && isset($this->_menuData[$category])) {
                        return $this->_menuData[$category];
                }
+
                $this->loadMenu($reload);
+               if(isset($this->_menuData[$category])) {
+                       $ret = $this->_menuData[$category];
+               }
 
-               return $this->_menuData[$category];
+               return $ret;
        }
 
        /**
index c88e4cdff74acc0cf97a4b361c0a662678eba8a4..ce2b34604ebfcc857221d4ecd4bf1d73e1eff16d 100644 (file)
@@ -554,6 +554,7 @@ class Mancubus {
                                catch (Exception $e) {
                                        error_log("[ERROR] ".__METHOD__." mysql catch: ".$e->getMessage());
                                }
+                               $ret =  $this->_cacheLookupValuesForEntry[$this->_collectionId][$entryId][$fieldData['id']];
                        }
                }