Permalink
Browse files

Removed notice level errors

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@40595 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 9b43207 commit 2748b0e81b2829b75b6fa0bbc2a79c4d89453b56 @sminnee sminnee committed Aug 20, 2007
Showing with 5 additions and 5 deletions.
  1. +5 −5 code/GenericDataAdmin.php
View
@@ -158,19 +158,19 @@ function SearchForm() {
* @return Form
*/
function getEditForm($id) {
- if($_GET['debug_profile']) Profiler::mark('getEditForm');
+ if(isset($_GET['debug_profile'])) Profiler::mark('getEditForm');
$genericData = DataObject::get_by_id($this->stat('data_type'), $id);
- $fields = (method_exists($genericData, getCMSFields)) ? $genericData->getCMSFields() : new FieldSet();
+ $fields = (method_exists($genericData, 'getCMSFields')) ? $genericData->getCMSFields() : new FieldSet();
if(!$fields->dataFieldByName('ID')) {
$fields->push($idField = new HiddenField("ID","ID",$id));
$idField->setValue($id);
}
- if(method_exists($genericData, getGenericStatus)){
+ if(method_exists($genericData, 'getGenericStatus')){
$genericDataStatus = $genericData->getGenericStatus();
if($genericDataStatus){
$fields->push($dataStatusField = new ReadonlyField("GenericDataStatus", "", $genericDataStatus));
@@ -179,7 +179,7 @@ function getEditForm($id) {
}
- $actions = (method_exists($genericData, getCMSActions)) ? $genericData->getCMSActions() : new FieldSet();
+ $actions = (method_exists($genericData, 'getCMSActions')) ? $genericData->getCMSActions() : new FieldSet();
if(!$actions->fieldByName('action_save')) {
$actions->push(new FormAction('save', 'Save','ajaxAction-save'));
}
@@ -207,7 +207,7 @@ function getEditForm($id) {
$form->loadDataFrom($genericData);
$form->disableDefaultAction();
- if($_GET['debug_profile']) Profiler::unmark('getEditForm');
+ if(isset($_GET['debug_profile'])) Profiler::unmark('getEditForm');
return $form;
}

0 comments on commit 2748b0e

Please sign in to comment.