Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-11-02 15:03:18 +01:00
commit 6893c3b09c

View File

@ -579,8 +579,8 @@ class DisplayResults
* Defines the parts to display for the results of a SQL query
* and the total number of rows
*
* @param array $displayParts the parts to display (see a few
* lines above for explanations)
* @param array $displayParts the parts to display (see a few
* lines above for explanations)
*
* @return array the first element is an array with explicit indexes
* for all the display elements
@ -596,6 +596,8 @@ class DisplayResults
*/
private function _setDisplayPartsAndTotal($displayParts)
{
$the_total = 0;
// 1. Following variables are needed for use in isset/empty or
// use with array indexes or safe use in foreach
$db = $this->__get('db');