mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-10 21:26:35 +01:00
Fixed missing user in active, Added removal of missed constraint before changing project column
This commit is contained in:
parent
96e19afbe2
commit
3833ac5c83
@ -101,7 +101,7 @@ class Active extends Common {
|
||||
foreach( $result as $id => $data ) {
|
||||
|
||||
array_push( $users, $data["user"] );
|
||||
if( $data["user"] == $_SESSION ) {
|
||||
if( $data["user"] == $_SESSION["user"] ) {
|
||||
|
||||
$user = true;
|
||||
break;
|
||||
|
@ -359,6 +359,21 @@ class sql {
|
||||
);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
$projects = $this->query( array(
|
||||
"mysql" => "ALTER TABLE projects DROP INDEX project_path;",
|
||||
"pgsql" => "ALTER TABLE projects DROP CONSTRAINT project_path;",
|
||||
), array(), 0, "rowCount", "exception" );
|
||||
} catch( Exception $error ) {
|
||||
|
||||
//echo var_dump( $error->getMessage() );
|
||||
$status_updates["path_owner_constraint"] = array(
|
||||
"error_message" => $error->getMessage(),
|
||||
"dev_message" => "Removal of project_path constraint in the projects table failed. This usually means there was never one to begin with"
|
||||
);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
$convert = false;
|
||||
|
Loading…
Reference in New Issue
Block a user