added new stdClass() in various places
This commit is contained in:
parent
37b86d5049
commit
7d6110b117
@ -56,6 +56,7 @@ class Issue extends Controller
|
|||||||
|
|
||||||
if ($filter == '')
|
if ($filter == '')
|
||||||
{
|
{
|
||||||
|
$search = new stdClass();
|
||||||
$search->type = '';
|
$search->type = '';
|
||||||
$search->status = '';
|
$search->status = '';
|
||||||
$search->priority = '';
|
$search->priority = '';
|
||||||
@ -78,7 +79,6 @@ class Issue extends Controller
|
|||||||
|
|
||||||
$this->load->library ('pagination');
|
$this->load->library ('pagination');
|
||||||
|
|
||||||
|
|
||||||
if ($filter == '' && $offset == '')
|
if ($filter == '' && $offset == '')
|
||||||
{
|
{
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
@ -181,6 +181,7 @@ class Issue extends Controller
|
|||||||
$change_post = $this->input->post('issue_change');
|
$change_post = $this->input->post('issue_change');
|
||||||
if ($change_post == 'change')
|
if ($change_post == 'change')
|
||||||
{
|
{
|
||||||
|
$change = new stdClass();
|
||||||
$change->type = $this->input->post('issue_change_type');
|
$change->type = $this->input->post('issue_change_type');
|
||||||
$change->status = $this->input->post('issue_change_status');
|
$change->status = $this->input->post('issue_change_status');
|
||||||
$change->owner = $this->input->post('issue_change_owner');
|
$change->owner = $this->input->post('issue_change_owner');
|
||||||
@ -317,6 +318,7 @@ class Issue extends Controller
|
|||||||
|
|
||||||
if ($this->input->post('issue'))
|
if ($this->input->post('issue'))
|
||||||
{
|
{
|
||||||
|
$issue = new stdClass();
|
||||||
$issue->projectid = $this->input->post('issue_projectid');
|
$issue->projectid = $this->input->post('issue_projectid');
|
||||||
$issue->id = $this->input->post('issue_id');
|
$issue->id = $this->input->post('issue_id');
|
||||||
$issue->summary = $this->input->post('issue_summary');
|
$issue->summary = $this->input->post('issue_summary');
|
||||||
@ -374,6 +376,7 @@ class Issue extends Controller
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$issue = new stdClass();
|
||||||
$issue->projectid = $projectid;
|
$issue->projectid = $projectid;
|
||||||
$issue->id = $id;
|
$issue->id = $id;
|
||||||
$issue->summary = '';
|
$issue->summary = '';
|
||||||
@ -456,6 +459,7 @@ class Issue extends Controller
|
|||||||
|
|
||||||
if($this->input->post('issue'))
|
if($this->input->post('issue'))
|
||||||
{
|
{
|
||||||
|
$issue = new stdClass();
|
||||||
$issue->projectid = $this->input->post('issue_projectid');
|
$issue->projectid = $this->input->post('issue_projectid');
|
||||||
$issue->id = $this->input->post('issue_id');
|
$issue->id = $this->input->post('issue_id');
|
||||||
$data['issue_confirm'] = $this->input->post('issue_confirm');
|
$data['issue_confirm'] = $this->input->post('issue_confirm');
|
||||||
|
@ -197,6 +197,7 @@ class Project extends Controller
|
|||||||
|
|
||||||
// recompose the project information from POST data.
|
// recompose the project information from POST data.
|
||||||
unset ($project);
|
unset ($project);
|
||||||
|
$project = new stdClass();
|
||||||
$project->id = $tmpid;
|
$project->id = $tmpid;
|
||||||
$project->name = $this->input->post('project_name');
|
$project->name = $this->input->post('project_name');
|
||||||
$project->summary = $this->input->post('project_summary');
|
$project->summary = $this->input->post('project_summary');
|
||||||
@ -259,6 +260,7 @@ class Project extends Controller
|
|||||||
if ($login['id'] == '')
|
if ($login['id'] == '')
|
||||||
redirect ("main/signin/" . $this->converter->AsciiTohex(current_url()));
|
redirect ("main/signin/" . $this->converter->AsciiTohex(current_url()));
|
||||||
|
|
||||||
|
$project = new stdClass();
|
||||||
$project->id = $projectid;
|
$project->id = $projectid;
|
||||||
$project->name = '';
|
$project->name = '';
|
||||||
$project->summary = '';
|
$project->summary = '';
|
||||||
@ -486,6 +488,7 @@ class Project extends Controller
|
|||||||
|
|
||||||
if ($filter == '')
|
if ($filter == '')
|
||||||
{
|
{
|
||||||
|
$search = new stdClass();
|
||||||
$search->id = '';
|
$search->id = '';
|
||||||
$search->name = '';
|
$search->name = '';
|
||||||
$search->summary = '';
|
$search->summary = '';
|
||||||
|
@ -77,6 +77,8 @@ class User extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->load->model ('ProjectModel', 'projects');
|
$this->load->model ('ProjectModel', 'projects');
|
||||||
|
|
||||||
|
$user = new stdClass();
|
||||||
$user->id = $login['id'];
|
$user->id = $login['id'];
|
||||||
|
|
||||||
$myprojs = $this->projects->getMyProjects ($login['id']);
|
$myprojs = $this->projects->getMyProjects ($login['id']);
|
||||||
@ -100,7 +102,7 @@ class User extends Controller
|
|||||||
$numprojs = count($myprojs);
|
$numprojs = count($myprojs);
|
||||||
for ($i = 0; $i < $numprojs; $i++)
|
for ($i = 0; $i < $numprojs; $i++)
|
||||||
$projids[$i] = $myprojs[$i]->id;
|
$projids[$i] = $myprojs[$i]->id;
|
||||||
|
|
||||||
$num_log_entries = $this->logs->getNumEntries ($projids);
|
$num_log_entries = $this->logs->getNumEntries ($projids);
|
||||||
if ($num_log_entries === FALSE)
|
if ($num_log_entries === FALSE)
|
||||||
{
|
{
|
||||||
@ -190,7 +192,7 @@ class User extends Controller
|
|||||||
|
|
||||||
$this->load->library ('upload');
|
$this->load->library ('upload');
|
||||||
$this->upload->initialize ($config);
|
$this->upload->initialize ($config);
|
||||||
|
|
||||||
if ($this->upload->do_upload ('icon_img_file_name'))
|
if ($this->upload->do_upload ('icon_img_file_name'))
|
||||||
{
|
{
|
||||||
$upload = $this->upload->data ();
|
$upload = $this->upload->data ();
|
||||||
@ -199,6 +201,7 @@ class User extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// make sure that these field also exist in the database
|
// make sure that these field also exist in the database
|
||||||
// also change the sanity check in LoginModel/getUser()
|
// also change the sanity check in LoginModel/getUser()
|
||||||
@ -232,6 +235,7 @@ class User extends Controller
|
|||||||
if ($settings === FALSE || $settings === NULL)
|
if ($settings === FALSE || $settings === NULL)
|
||||||
{
|
{
|
||||||
if ($settings === FALSE) $data['message'] = 'DATABASE ERROR';
|
if ($settings === FALSE) $data['message'] = 'DATABASE ERROR';
|
||||||
|
$settings = new stdClass();
|
||||||
$settings->code_hide_line_num = ' ';
|
$settings->code_hide_line_num = ' ';
|
||||||
$settings->code_hide_metadata = ' ';
|
$settings->code_hide_metadata = ' ';
|
||||||
$settings->icon_name = '';
|
$settings->icon_name = '';
|
||||||
|
@ -42,7 +42,8 @@ class LoginModel extends Model
|
|||||||
if ($settings !== NULL)
|
if ($settings !== NULL)
|
||||||
{
|
{
|
||||||
$settings = @unserialize ($settings);
|
$settings = @unserialize ($settings);
|
||||||
if ($settings === FALSE) $settings = NULL;
|
if ($settings === FALSE || $settings === NULL)
|
||||||
|
$settings = new stdObject();
|
||||||
|
|
||||||
// Sanity check on the session/cookie data
|
// Sanity check on the session/cookie data
|
||||||
// See Controller/User->settings() for required fields.
|
// See Controller/User->settings() for required fields.
|
||||||
|
@ -35,11 +35,12 @@ $(function () {
|
|||||||
<!---------------------------------------------------------------------------->
|
<!---------------------------------------------------------------------------->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
$user = new stdClass();
|
||||||
$user->id = $login['id'];
|
$user->id = $login['id'];
|
||||||
|
|
||||||
$this->load->view (
|
$this->load->view (
|
||||||
'projectbar',
|
'projectbar',
|
||||||
array (
|
array (
|
||||||
'banner' => NULL,
|
'banner' => NULL,
|
||||||
|
|
||||||
'page' => array (
|
'page' => array (
|
||||||
@ -48,8 +49,8 @@ $this->load->view (
|
|||||||
'user' => $user,
|
'user' => $user,
|
||||||
),
|
),
|
||||||
|
|
||||||
'ctxmenuitems' => array ()
|
'ctxmenuitems' => array ()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
<!---------------------------------------------------------------------------->
|
<!---------------------------------------------------------------------------->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
$user = new stdClass();
|
||||||
$user->id = $login['id'];
|
$user->id = $login['id'];
|
||||||
|
|
||||||
$this->load->view (
|
$this->load->view (
|
||||||
|
Loading…
Reference in New Issue
Block a user