Project

General

Profile

Bug #4402

DATABASE ERROR #1064: on file main/inc/local.inc.php

Added by Hubert Borderiou over 7 years ago. Updated over 7 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
21/02/2012
Due date:
% Done:

50%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

Hi,
I've got a Database error on file Missing main/inc/local.inc.php
It is because, on line bellow, $user_table is empty.

Line 622+ are

if (isset($_user['user_id']) && $_user['user_id'] && ! api_is_anonymous()) // a uid is given (log in succeeded)
// a uid is given (log in succeeded)
$user_table = Database::get_main_table(TABLE_MAIN_USER);
$admin_table = Database::get_main_table(TABLE_MAIN_ADMIN);
$track_e_login = Database::get_statistic_table(TABLE_STATISTIC_TRACK_E_LOGIN);

There is no open/close brace { for this if command. Test just work for the first line of code after the if.
I'm not sure where to put the open/close braces for this test.

Associated revisions

Revision 102ada96 (diff)
Added by Julio Montoya over 7 years ago

Fixing error due a wrong merge see #4402

History

#2

Updated by Hubert Borderiou over 7 years ago

  • Status changed from Needs more info to Bug resolved

Tested and approuved.

Also available in: Atom PDF