initialized $site with new stdClass() before assigning fields
This commit is contained in:
parent
3316cf8b3f
commit
4caccffdfe
@ -227,6 +227,7 @@ class Site extends Controller
|
|||||||
|
|
||||||
// recompose the site information from POST data.
|
// recompose the site information from POST data.
|
||||||
unset ($site);
|
unset ($site);
|
||||||
|
$site = new stdClass();
|
||||||
$site->id = $tmpid;
|
$site->id = $tmpid;
|
||||||
|
|
||||||
$site->name = $this->input->post('site_name');
|
$site->name = $this->input->post('site_name');
|
||||||
@ -290,6 +291,7 @@ class Site extends Controller
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$site = new stdClass();
|
||||||
$site->id = $siteid;
|
$site->id = $siteid;
|
||||||
$site->name = '';
|
$site->name = '';
|
||||||
$site->summary = '';
|
$site->summary = '';
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
<!---------------------------------------------------------------------------->
|
<!---------------------------------------------------------------------------->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
$site = new stdClass();
|
||||||
$site->id = '';
|
$site->id = '';
|
||||||
$site->name = '';
|
$site->name = '';
|
||||||
$site->text = '';
|
$site->text = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user