Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
dd651000
Commit
dd651000
authored
Jun 07, 2007
by
Donal McMullan
Browse files
Prevent installer from dying when table doesn't exist
parent
59293499
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/api/xmlrpc/lib.php
View file @
dd651000
...
...
@@ -193,6 +193,10 @@ function get_service_providers($instance) {
global
$CFG
;
static
$cache
=
array
();
if
(
defined
(
'INSTALLER'
))
{
return
array
();
}
if
(
array_key_exists
(
$instance
,
$cache
))
{
return
$cache
[
$instance
];
}
...
...
@@ -222,7 +226,12 @@ function get_service_providers($instance) {
aic3.value = \'1\' AND
a.name = h.appname'
;
$results
=
get_records_sql_assoc
(
$query
,
array
(
'value'
=>
$instance
));
try
{
$results
=
get_records_sql_assoc
(
$query
,
array
(
'value'
=>
$instance
));
}
catch
(
SQLException
$e
)
{
// Table doesn't exist yet
return
array
();
}
if
(
false
==
$results
)
{
$results
=
array
();
...
...
Write
Preview
Supports
Markdown
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