Rev 112 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 112 | Rev 150 | ||
---|---|---|---|
Line 102... | Line 102... | ||
102 | $icon = file_exists(__DIR__.'/icon_big.png') ? 'plugins/objectTypes/'.basename(__DIR__).'/icon_big.png' : ''; |
102 | $icon = file_exists(__DIR__.'/icon_big.png') ? 'plugins/objectTypes/'.basename(__DIR__).'/icon_big.png' : ''; |
103 | 103 | ||
104 | if ($this->isRoot()) { |
104 | if ($this->isRoot()) { |
105 | $title = OIDplusDoi::objectTypeTitle(); |
105 | $title = OIDplusDoi::objectTypeTitle(); |
106 | 106 | ||
107 | $res = OIDplus::db()->query("select * from ".OIDPLUS_TABLENAME_PREFIX."objects where parent = '".OIDplus::db()->real_escape_string(self::root())."'"); |
107 | $res = OIDplus::db()->query("select * from ".OIDPLUS_TABLENAME_PREFIX."objects where parent = ?", array(self::root())); |
108 | if (OIDplus::db()->num_rows($res) > 0) { |
108 | if (OIDplus::db()->num_rows($res) > 0) { |
109 | $content = 'Please select an DOI in the tree view at the left to show its contents.'; |
109 | $content = 'Please select an DOI in the tree view at the left to show its contents.'; |
110 | } else { |
110 | } else { |
111 | $content = 'Currently, no DOIs are registered in the system.'; |
111 | $content = 'Currently, no DOIs are registered in the system.'; |
112 | } |
112 | } |