projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove debug
[Pman.Core]
/
DatabaseColumns.php
diff --git
a/DatabaseColumns.php
b/DatabaseColumns.php
index
cced6b6
..
703b1fa
100644
(file)
--- a/
DatabaseColumns.php
+++ b/
DatabaseColumns.php
@@
-11,10
+11,10
@@
class Pman_Core_DatabaseColumns extends Pman {
$au = $this->getAuthUser();
if (!$au) {
$au = $this->getAuthUser();
if (!$au) {
- $this->jerr
(
"Not authenticated", array('authFailure' => true));
+ $this->jerr
or("LOGIN-NOAUTH",
"Not authenticated", array('authFailure' => true));
}
if (!$au->pid() ) { // not set up yet..
}
if (!$au->pid() ) { // not set up yet..
- $this->jerr
(
"Not authenticated", array('authFailure' => true));
+ $this->jerr
or("LOGIN-NOAUTH",
"Not authenticated", array('authFailure' => true));
}
}
@@
-22,7
+22,7
@@
class Pman_Core_DatabaseColumns extends Pman {
return true;
}
return true;
}
- function get($table) {
+ function get($table
, $opts = Array()
) {
$d = DB_DAtaObject::Factory($table);
if (method_exists($d, 'availableColumns')) {
$cols = $d->availableColumns();
$d = DB_DAtaObject::Factory($table);
if (method_exists($d, 'availableColumns')) {
$cols = $d->availableColumns();