gcdb::suppress_errors()

最后更新于:2021-11-26 09:05:42

gcdb::suppress_errors( bool$suppress=true)

Enables or disables suppressing of database errors.

参数

$suppress

(bool) (Optional) Whether to suppress errors.

Default value: true

响应

(bool) Whether suppressing of errors was previously active.

源文件

文件: gc-includes/gc-db.php

	public function suppress_errors( $suppress = true ) {
		$errors                = $this->suppress_errors;
		$this->suppress_errors = (bool) $suppress;
		return $errors;
	}