@@ -1868,16 +1868,16 @@ discard block |
||
1868 | 1868 | return true; |
1869 | 1869 | } |
1870 | 1870 | |
1871 | - /** |
|
1872 | - * Returns the visibility of a question. |
|
1873 | - * |
|
1874 | - * @param int $questionId |
|
1875 | - * |
|
1876 | - * @return string |
|
1877 | - */ |
|
1878 | - public function getVisibilityOfQuestion($questionId) |
|
1879 | - { |
|
1880 | - $query = sprintf(" |
|
1871 | + /** |
|
1872 | + * Returns the visibility of a question. |
|
1873 | + * |
|
1874 | + * @param int $questionId |
|
1875 | + * |
|
1876 | + * @return string |
|
1877 | + */ |
|
1878 | + public function getVisibilityOfQuestion($questionId) |
|
1879 | + { |
|
1880 | + $query = sprintf(" |
|
1881 | 1881 | SELECT |
1882 | 1882 | is_visible |
1883 | 1883 | FROM |
@@ -1891,15 +1891,15 @@ discard block |
||
1891 | 1891 | $this->_config->getLanguage()->getLanguage() |
1892 | 1892 | ); |
1893 | 1893 | |
1894 | - $result = $this->_config->getDb()->query($query); |
|
1895 | - if ($this->_config->getDb()->numRows($result) > 0) { |
|
1896 | - $row = $this->_config->getDb()->fetchObject($result); |
|
1894 | + $result = $this->_config->getDb()->query($query); |
|
1895 | + if ($this->_config->getDb()->numRows($result) > 0) { |
|
1896 | + $row = $this->_config->getDb()->fetchObject($result); |
|
1897 | 1897 | |
1898 | - return $row->is_visible; |
|
1899 | - } |
|
1898 | + return $row->is_visible; |
|
1899 | + } |
|
1900 | 1900 | |
1901 | - return; |
|
1902 | - } |
|
1901 | + return; |
|
1902 | + } |
|
1903 | 1903 | |
1904 | 1904 | /** |
1905 | 1905 | * Sets the visibility of a question. |
@@ -2455,7 +2455,7 @@ discard block |
||
2455 | 2455 | 'answer_id' => $row->answer_id, |
2456 | 2456 | 'is_visible' => $row->is_visible, |
2457 | 2457 | ); |
2458 | - } |
|
2458 | + } |
|
2459 | 2459 | } |
2460 | 2460 | |
2461 | 2461 | return $questions; |