Bugfix für nicht sichbaren Content

This commit is contained in:
Andreas Österreicher
2011-09-05 08:48:23 +00:00
parent b7017f9f52
commit 6e5ca0640b
2 changed files with 47 additions and 40 deletions
+5
View File
@@ -496,6 +496,11 @@ class content extends basis_db
*/
public function hasChilds($content_id)
{
if($content_id=='' || !is_numeric($content_id))
{
$this->errormsg = 'ContentID ungueltig';
return false;
}
$qry = "SELECT count(*) as anzahl FROM campus.tbl_contentchild WHERE content_id='".addslashes($content_id)."'";
if($result = $this->db_query($qry))