# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- components/com_comprofiler/comprofiler.html.php +++ components/com_comprofiler/comprofiler.html.php @@ -741,6 +741,16 @@ } } + if ( preg_match( '!^(?:(RAND\((\d*)\))\s(ASC|DESC))$!', $row->sortfields, $matches ) ) { + $random = $matches[2]; + + if ( ! $random ) { + $random = rand( 0, 9999 ); + } + + $pagingSearch .= '&' . urlencode( 'rand' ) . '=' . urlencode( $random ); + } + // Add Javascript to click tr: $jsClickTr = " {" . "\n var cbUserURLs = new Array(";