mirror of
https://github.com/cytopia/devilbox.git
synced 2025-04-16 15:09:01 +00:00
Fix phpPgAdmin error reporting
This commit is contained in:
parent
9ff5006d1a
commit
d471794f72
@ -10,7 +10,7 @@
|
||||
include_once('./lang/translations.php');
|
||||
|
||||
// Set error reporting level to max
|
||||
error_reporting(E_ALL);
|
||||
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
||||
|
||||
// Application name
|
||||
$appName = 'phpPgAdmin';
|
||||
|
@ -10,7 +10,7 @@
|
||||
include_once('./lang/translations.php');
|
||||
|
||||
// Set error reporting level to max
|
||||
error_reporting(E_ALL);
|
||||
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
||||
|
||||
// Application name
|
||||
$appName = 'phpPgAdmin';
|
||||
|
@ -169,14 +169,17 @@ phpPgAdmin requires some adjustments to work with the Devilbox intranet. See bel
|
||||
```
|
||||
`libraries/lib.inc.php`
|
||||
```diff
|
||||
- if (!ini_get('session.auto_start')) {
|
||||
- session_name('PPA_ID');
|
||||
- session_start();
|
||||
- }
|
||||
+ if (!strlen(session_id()) > 0) {
|
||||
+ session_name('PPA_ID');
|
||||
+ session_start();
|
||||
+ }
|
||||
- error_reporting(E_ALL);
|
||||
+ error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
||||
|
||||
- if (!ini_get('session.auto_start')) {
|
||||
- session_name('PPA_ID');
|
||||
- session_start();
|
||||
- }
|
||||
+ if (!strlen(session_id()) > 0) {
|
||||
+ session_name('PPA_ID');
|
||||
+ session_start();
|
||||
+ }
|
||||
```
|
||||
|
||||
### Tests
|
||||
|
Loading…
x
Reference in New Issue
Block a user