Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Massimiliano
ISPConfig 3
Commits
ccfc84e6
Commit
ccfc84e6
authored
Dec 19, 2014
by
Marius Cramer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed missing quotes on db selection
parent
b8cdf90f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
interface/lib/classes/db_mysql.inc.php
interface/lib/classes/db_mysql.inc.php
+1
-1
server/lib/classes/db_mysql.inc.php
server/lib/classes/db_mysql.inc.php
+1
-1
No files found.
interface/lib/classes/db_mysql.inc.php
View file @
ccfc84e6
...
...
@@ -86,7 +86,7 @@ class db extends mysqli
$this
->
_sqlerror
(
'Zugriff auf Datenbankserver fehlgeschlagen! / Database server not accessible!'
);
return
false
;
}
if
(
!
((
bool
)
mysqli_query
(
$this
->
_iConnId
,
"USE
$this->dbName
"
)))
{
if
(
!
((
bool
)
mysqli_query
(
$this
->
_iConnId
,
'USE `'
.
$this
->
dbName
.
'`'
)))
{
$this
->
close
();
$this
->
_sqlerror
(
'Datenbank nicht gefunden / Database not found'
);
return
false
;
...
...
server/lib/classes/db_mysql.inc.php
View file @
ccfc84e6
...
...
@@ -86,7 +86,7 @@ class db extends mysqli
$this
->
_sqlerror
(
'Zugriff auf Datenbankserver fehlgeschlagen! / Database server not accessible!'
);
return
false
;
}
if
(
!
((
bool
)
mysqli_query
(
$this
->
_iConnId
,
"USE
$this->dbName
"
)))
{
if
(
!
((
bool
)
mysqli_query
(
$this
->
_iConnId
,
'USE `'
.
$this
->
dbName
.
'`'
)))
{
$this
->
close
();
$this
->
_sqlerror
(
'Datenbank nicht gefunden / Database not found'
);
return
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment