0) { $logo = $logo[0]; } if ($logo) { // Get parameters for future repositioning // Delete file from the FS deleteImageFile($logo->address, $logo->userid); // Delete database entry koolielu_delete_logo($id); // Do the repositioning reposition_koolielu_logos($logo->placeid, $logo->pageid); } ?>