Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BKLLC
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Luke081515
BKLLC
Commits
3fcebf68
Commit
3fcebf68
authored
Aug 01, 2017
by
Luke081515
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UpdateBKLTable: prevent call on a non-object
* fetch-assoc gets only called if there results.
parent
d651d05c
Pipeline
#74
passed with stage
in 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
UpdateBKLTable.php
UpdateBKLTable.php
+13
-9
No files found.
UpdateBKLTable.php
View file @
3fcebf68
...
...
@@ -35,10 +35,12 @@ class BKLLC extends Core {
$sql
=
'SELECT DisID FROM Disambig;'
;
$result
=
$this
->
DB
->
query
(
$sql
);
$a
=
0
;
while
(
$row
=
$result
->
fetch_assoc
()){
$AlreadySet
[
$a
]
=
$row
[
'DisID'
];
// Ruft alle bestehende Infos ab
$a
++
;
}
try
{
while
(
$row
=
$result
->
fetch_assoc
())
{
$AlreadySet
[
$a
]
=
$row
[
'DisID'
];
// Ruft alle bestehende Infos ab
$a
++
;
}
}
catch
(
Exception
$e
)
{}
$result
->
free
();
$ListIDs
=
unserialize
(
$this
->
getCatMembers
(
'Kategorie:Begriffsklärung'
));
$a
=
0
;
...
...
@@ -47,7 +49,7 @@ class BKLLC extends Core {
if
(
$a
<
200000
)
return
false
;
// Fehler in der Abfrage
$a
=
0
;
while
(
isset
(
$ListIDs
[
$a
]))
{
while
(
isset
(
$ListIDs
[
$a
]))
{
$sql
=
'SELECT DisID FROM Disambig WHERE DisID = '
.
$ListIDs
[
$a
]
.
';'
;
$result
=
$this
->
DB
->
query
(
$sql
);
if
(
$result
===
0
)
{
...
...
@@ -60,10 +62,12 @@ class BKLLC extends Core {
$sql
=
'SELECT DisID FROM Disambig;'
;
$result
=
$this
->
DB
->
query
(
$sql
);
$a
=
0
;
while
(
$row
=
$result
->
fetch_assoc
()){
$AlreadySet
[
$a
]
=
$row
[
'DisID'
];
// Ruft alle bestehende Infos ab
$a
++
;
}
try
{
while
(
$row
=
$result
->
fetch_assoc
()){
$AlreadySet
[
$a
]
=
$row
[
'DisID'
];
// Ruft alle bestehende Infos ab
$a
++
;
}
}
catch
(
Exception
$e
)
{}
$result
->
free
();
while
(
isset
(
$AlreadySet
[
$a
]))
{
$b
=
0
;
...
...
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