]> source.dussan.org Git - nextcloud-server.git/commitdiff
No function as oci_last_error. It's oci_error.
authorAndreas Fischer <bantu@owncloud.com>
Thu, 28 Nov 2013 10:37:29 +0000 (11:37 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 3 Dec 2013 16:49:37 +0000 (17:49 +0100)
lib/private/setup/oci.php

index 997d50c8afb04122483c28319f7764d7c78be94e..f4ecb22de5fb3b4481f9c689affa52e316043e0a 100644 (file)
@@ -51,7 +51,7 @@ class OCI extends AbstractDatabase {
                        ." WHERE user_role_privs.granted_role = role_sys_privs.role AND privilege = 'CREATE ROLE'";
                $stmt = oci_parse($connection, $query);
                if (!$stmt) {
-                       $entry = $this->trans->t('DB Error: "%s"', array(oci_last_error($connection))) . '<br />';
+                       $entry = $this->trans->t('DB Error: "%s"', array(oci_error($connection))) . '<br />';
                        $entry .= $this->trans->t('Offending command was: "%s"', array($query)) . '<br />';
                        \OC_Log::write('setup.oci', $entry, \OC_Log::WARN);
                }