File: fix-rownumbers-plugin-fatal-error

package info (click to toggle)
adminer 5.4.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,832 kB
  • sloc: php: 28,757; javascript: 1,191; xml: 107; makefile: 48; sh: 3
file content (18 lines) | stat: -rw-r--r-- 676 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
From: Alexandre Rossi <niol@zincube.net>
Forwarded: https://github.com/vrana/adminer/issues/1167
Description: fix AdminerRowNumbers plugin PHP Fatal error
  Constant expression contains invalid operations

---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- adminer.git.orig/plugins/row-numbers.php	2025-09-16 06:31:46.661125315 +0200
+++ adminer.git/plugins/row-numbers.php	2025-09-19 17:56:44.771858688 +0200
@@ -13,7 +13,7 @@
 	}
 
 	function backwardKeysPrint($backwardKeys, $row) {
-		static $n = $_GET["page"] * Adminer\adminer()->selectLimitProcess();
+		$n = $_GET["page"] * Adminer\adminer()->selectLimitProcess();
 		$n++;
 		echo "$n.\n";
 	}