Skip to content

Commit

Permalink
Old logic did not quite work.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey committed Sep 17, 2024
1 parent 38006d7 commit 1b6acbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utility/Fedora3/ObjectLowLevelAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public function getIteratorType() : int {
* truth-y; FALSE if AKUBRA_ADAPTER_WRITE_PARANOIA is false-y.
*/
protected static function writeParanoia() : bool {
$env = getenv('AKUBRA_ADAPTER_WRITE_PARANOIA') ?: TRUE;
return (bool) $env;
$env = getenv('AKUBRA_ADAPTER_WRITE_PARANOIA');
return $env === FALSE || $env;
}

}

0 comments on commit 1b6acbe

Please sign in to comment.