From: miker Date: Thu, 24 Jun 2010 15:12:58 +0000 (+0000) Subject: and imagine that, the ou passed to actor.org_unit_descendants(INT) might also be... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1a4d5f98aa87f4be81e2554cf684e1a8b8db83da;p=contrib%2FConifer.git and imagine that, the ou passed to actor.org_unit_descendants(INT) might also be null. super. git-svn-id: svn://svn.open-ils.org/ILS/trunk@16805 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/pgmemcache-ou_tree_traversal_cache.sql b/Open-ILS/src/sql/Pg/pgmemcache-ou_tree_traversal_cache.sql index 5f70e37bf5..53eea2e8ed 100644 --- a/Open-ILS/src/sql/Pg/pgmemcache-ou_tree_traversal_cache.sql +++ b/Open-ILS/src/sql/Pg/pgmemcache-ou_tree_traversal_cache.sql @@ -57,6 +57,10 @@ DECLARE cached_value RECORD; BEGIN + IF org IS NULL THEN + RETURN; + END IF; + IF permission.mc_init() THEN -- RAISE NOTICE 'Getting perm from cache'; EXECUTE $$SELECT memcache_get('oils_orgcache_$$ || org || $$') AS x;$$ INTO cached_value;