Undefined index error fixed by returning a default error if none is set in the database.
This commit is contained in:
parent
e1f4010346
commit
63b1ead363
2 changed files with 10 additions and 4 deletions
|
@ -73,13 +73,12 @@ class Application_Model_Datatables
|
|||
$orig2searchTerm[$index] = $d;
|
||||
}
|
||||
}
|
||||
// map that maps current column position to original position
|
||||
$current2orig = $librarySetting['ColReorder'];
|
||||
|
||||
// map that maps dbname to searchTerm
|
||||
$dbname2searchTerm = array();
|
||||
foreach ($current2dbname as $currentPos=>$dbname) {
|
||||
$dbname2searchTerm[$dbname] = $orig2searchTerm[$current2orig[$currentPos]];
|
||||
$dbname2searchTerm[$dbname] =
|
||||
$orig2searchTerm[$librarySetting($currentPos)];
|
||||
}
|
||||
|
||||
$where = array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue