Index: branches/unlabeled/unlabeled-1.38.2/kernel/include/item.php =================================================================== diff -u -r5341 -r5962 --- branches/unlabeled/unlabeled-1.38.2/kernel/include/item.php (.../item.php) (revision 5341) +++ branches/unlabeled/unlabeled-1.38.2/kernel/include/item.php (.../item.php) (revision 5962) @@ -247,7 +247,9 @@ function DeleteCustomData() { $cdata = new clsCustomDataList(); - $cdata->DeleteResource($this->Get('ResourceId'), $this->Prefix); + if ($this->Prefix) { + $cdata->DeleteResource($this->Get('ResourceId'), $this->Prefix); + } } function Delete($RecordOnly=FALSE)