Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
User expired
tcexam_uibk
Commits
24a5d2dd
Commit
24a5d2dd
authored
Nov 15, 2016
by
Ewald
Browse files
new deletion routine
parent
0b7d983e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
admin/code/delete_old_tests.php
admin/code/delete_old_tests.php
+1
-4
No files found.
admin/code/delete_old_tests.php
View file @
24a5d2dd
...
...
@@ -158,10 +158,7 @@ function pdf_error($test_id,$override){
$contents
=
file_get_contents
(
$file
);
//Array for possible errors and their respective return values
$searchfor
=
[
[
"504 Gateway Time-out"
,
18
],
[
"FEHLER: [2] imagecreatefrom"
,
2
]
];
$searchfor
=
[[
"504 Gateway Time-out"
,
18
],[
"FEHLER: [2] imagecreatefrom"
,
2
]];
foreach
(
$searchfor
as
list
(
$errtext
,
$retval
))
{
$pattern
=
preg_quote
(
$errtext
,
'/'
);
// escape special characters in the query
...
...
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