diff options
| -rw-r--r-- | app/class/obj.class.php | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/app/class/obj.class.php b/app/class/obj.class.php index 4e44649..003738b 100644 --- a/app/class/obj.class.php +++ b/app/class/obj.class.php @@ -212,6 +212,16 @@ class obj extends table      }      /* +     * Check whether object has a custom head set.  This is necessary, since +     * getHeadImg() will return a path to a default if the object doesn't +     * have its own. +     */ +    public function hasHeadImg() : bool +    { +        return is_file("dynmic/heads/" . $this->guid); +    } + +    /*       * Get the URL to the head image resource for this object       */      public function getHeadImg() : string | 
